Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-services
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 7a0b668a
authored
Feb 06, 2023
by
杨北旺
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
售前权益添加查询条件
1 parent
95954ba4
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
85 additions
and
9 deletions
src/config/index.js
src/views/beforeSale/equityList.vue
src/config/index.js
View file @
7a0b668
...
@@ -17,7 +17,7 @@ export const fetchConfig = function(isEnv = true) {
...
@@ -17,7 +17,7 @@ export const fetchConfig = function(isEnv = true) {
// Object.assign(request, { timeout })
// Object.assign(request, { timeout })
// return Promise.resolve(cfg)
// return Promise.resolve(cfg)
// }
// }
return
new
Http
({
Headers
:
{
refererurl
:
location
.
href
},
request
:
{
timeout
:
30000
}
}).
get
(
'https://oss-config.
test
.glsx.com.cn/mock/618f5cc91072f92988f05a26/services/config'
)
return
new
Http
({
Headers
:
{
refererurl
:
location
.
href
},
request
:
{
timeout
:
30000
}
}).
get
(
'https://oss-config.
dev
.glsx.com.cn/mock/618f5cc91072f92988f05a26/services/config'
)
//return window.fetch('https://', {}).then(res => res.json())
//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' })
// request({ url: 'https://oss-config.test.glsx.com.cn/mock/5be17454f31545347559d499/config/oss_commodity_center', method: 'get' })
}
}
...
...
src/views/beforeSale/equityList.vue
View file @
7a0b668
...
@@ -8,11 +8,11 @@
...
@@ -8,11 +8,11 @@
</div>
</div>
<div
class=
"container"
>
<div
class=
"container"
>
<div
class=
"find_wrap"
>
<div
class=
"find_wrap"
>
<GLCombiForm
ref=
"showSearch"
:formObj=
"searchForm"
:searchSelectObj=
"searchSelectObj"
@
handleOk=
"handleSearch"
@
handleRest=
"handleReset"
:formData=
"searchFormData"
></GLCombiForm>
<GLCombiForm
:key=
"newKey"
ref=
"showSearch"
:formObj=
"searchForm"
:searchSelectObj=
"searchSelectObj"
@
handleOk=
"handleSearch"
@
handleRest=
"handleReset"
:formData=
"searchFormData"
></GLCombiForm>
</div>
</div>
<!-- 表格区域 开始 -->
<!-- 表格区域 开始 -->
<div
class=
"table_wrapper"
>
<div
class=
"table_wrapper"
>
<el-button
plain
:size=
"size"
style=
"float:
right;margin-bottom:10px;
"
@
click=
"handleExport"
>
导出
</el-button>
<el-button
plain
:size=
"size"
style=
"float:
right; margin-bottom: 10px
"
@
click=
"handleExport"
>
导出
</el-button>
<GLTable
ref=
"equityRef"
:pageSizes=
"sizeList"
:paginationattrs=
"paginationattrs"
:getListApi=
"getListApi"
:searchForm=
"tableSearchForm"
:tableParams=
"tableParams"
:pageConf=
"pageConf"
:beforeSearchFn=
"beforeSearchFn"
>
<GLTable
ref=
"equityRef"
:pageSizes=
"sizeList"
:paginationattrs=
"paginationattrs"
:getListApi=
"getListApi"
:searchForm=
"tableSearchForm"
:tableParams=
"tableParams"
:pageConf=
"pageConf"
:beforeSearchFn=
"beforeSearchFn"
>
<div
class=
"table-btns"
slot=
"table-btns"
slot-scope=
"scope"
>
<div
class=
"table-btns"
slot=
"table-btns"
slot-scope=
"scope"
>
<!--
<GLButton
v-if=
"[2, 4, 5].includes(scope.scope.orderStatus)"
fn=
"查看"
type=
"text"
@
click=
"handleEdit(5, scope.scope)"
>
查看
</GLButton>
<!--
<GLButton
v-if=
"[2, 4, 5].includes(scope.scope.orderStatus)"
fn=
"查看"
type=
"text"
@
click=
"handleEdit(5, scope.scope)"
>
查看
</GLButton>
...
@@ -62,7 +62,7 @@ export default {
...
@@ -62,7 +62,7 @@ export default {
name
:
'equityList'
,
name
:
'equityList'
,
data
()
{
data
()
{
return
{
return
{
// :page-size="100"
newKey
:
new
Date
(),
paginationattrs
:
{
paginationattrs
:
{
'page-size'
:
5
'page-size'
:
5
},
},
...
@@ -231,6 +231,14 @@ export default {
...
@@ -231,6 +231,14 @@ export default {
{
{
label
:
'车架号'
,
label
:
'车架号'
,
name
:
'vin'
name
:
'vin'
},
{
label
:
'卡号'
,
name
:
'cardNo'
},
{
label
:
'设备号'
,
name
:
'snNo'
}
}
],
],
handleSelectChange
:
value
=>
{
handleSelectChange
:
value
=>
{
...
@@ -268,6 +276,73 @@ export default {
...
@@ -268,6 +276,73 @@ export default {
name
:
'effectiveDate'
,
name
:
'effectiveDate'
,
type
:
'datePicker'
,
type
:
'datePicker'
,
isClear
:
true
isClear
:
true
},
{
label
:
'总部'
,
name
:
'merchantId'
,
type
:
'select'
,
optionList
:
[],
optionId
:
'merchantNo'
,
optionLabel
:
'merchantName'
,
optionsName
:
'merchantList'
,
isHide
:
true
,
changeAttr
:
(
val
,
targetItem
)
=>
{
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
.
findIndex
(
item
=>
item
.
name
==
this
.
levelToShow
[
i
+
''
])
this
.
searchFormData
[
tempIdx
].
isHide
=
true
this
.
searchForm
[
this
.
levelToShow
[
i
+
''
]]
=
''
}
this
.
getMerchantList
(
val
,
2
,
this
.
searchFormData
[
idx
].
name
,
this
.
searchFormData
[
idx
].
optionsName
)
}
},
{
label
:
'省代'
,
name
:
'dqtId'
,
type
:
'select'
,
optionList
:
[],
optionId
:
'merchantNo'
,
optionLabel
:
'merchantName'
,
optionsName
:
'dqList'
,
isHide
:
true
,
changeAttr
:
(
val
,
targetItem
)
=>
{
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
.
findIndex
(
item
=>
item
.
name
==
this
.
levelToShow
[
'4'
])
this
.
searchFormData
[
tempIdx
].
isHide
=
true
this
.
searchForm
[
this
.
levelToShow
[
'4'
]]
=
''
this
.
getMerchantList
(
val
,
3
,
this
.
searchFormData
[
idx
].
name
,
this
.
searchFormData
[
idx
].
optionsName
)
}
},
{
label
:
'市代'
,
name
:
'pqId'
,
type
:
'select'
,
optionList
:
[],
optionId
:
'merchantNo'
,
optionLabel
:
'merchantName'
,
optionsName
:
'pqList'
,
isHide
:
true
,
changeAttr
:
(
val
,
targetItem
)
=>
{
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
[
idx
].
name
,
this
.
searchFormData
[
idx
].
optionsName
)
}
},
{
label
:
'门店'
,
name
:
'mdId'
,
type
:
'select'
,
optionList
:
[],
optionId
:
'merchantNo'
,
optionLabel
:
'merchantName'
,
optionsName
:
'mdList'
,
isHide
:
true
}
}
],
],
searchFormData2
:
[
searchFormData2
:
[
...
@@ -580,11 +655,11 @@ export default {
...
@@ -580,11 +655,11 @@ export default {
this
.
getCountNoData
()
this
.
getCountNoData
()
this
.
$apis
.
beforeSale
.
getUserInfoApi
({}).
then
(
res
=>
{
this
.
$apis
.
beforeSale
.
getUserInfoApi
({}).
then
(
res
=>
{
this
.
userInfo
=
res
this
.
userInfo
=
res
//
if (res.merchantAccountLevel != 4) {
if
(
res
.
merchantAccountLevel
!=
4
)
{
//
var idx = this.searchFormData.findIndex(item => item.name == this.levelToShow[this.userInfo.admin ? res.merchantAccountLevel : res.merchantAccountLevel + 1])
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
].
isHide
=
false
//
this.getMerchantList('', '', this.searchFormData[idx].name, this.searchFormData[idx].optionsName)
this
.
getMerchantList
(
''
,
''
,
this
.
searchFormData
[
idx
].
name
,
this
.
searchFormData
[
idx
].
optionsName
)
//
}
}
})
})
},
},
...
@@ -671,6 +746,7 @@ export default {
...
@@ -671,6 +746,7 @@ export default {
}
}
})
})
}
}
this
.
newKey
=
new
Date
()
},
},
secondConfirm
(
title
,
txt
,
apiModule
,
apiName
,
apiParams
)
{
secondConfirm
(
title
,
txt
,
apiModule
,
apiName
,
apiParams
)
{
...
...
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