Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
dj-car-life-system
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 bcbc9145
authored
Jul 10, 2023
by
张立顺
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
预览信息 去除不是超管带园区参数的逻辑
1 parent
99e37207
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
13 deletions
src/api/vdrule.js
src/views/customer/editCustomer.vue
src/views/customer/recordList.vue
src/views/rightsAndInterestsManage/components/ruleConfigurationDialog.vue
src/api/vdrule.js
View file @
bcbc914
import
request
from
'./request'
import
request
from
"./request"
const
path
=
'dj.api.smartcarlife.'
const
path
=
"dj.api.smartcarlife."
// 车损权益规则分页列表
// 车损权益规则分页列表
export
function
getList
(
data
)
{
export
function
getList
(
data
)
{
...
@@ -12,7 +11,7 @@ export function getList(data) {
...
@@ -12,7 +11,7 @@ export function getList(data) {
// 车损权益规则新增/编辑
// 车损权益规则新增/编辑
export
function
insertorUpdate
(
data
)
{
export
function
insertorUpdate
(
data
)
{
data
.
method
=
`
${
path
}
vdrule.insertorupdate`
data
.
method
=
`
${
path
}
vdrule.insertorupdate`
return
request
(
data
)
return
request
(
data
,
"Post"
)
}
}
// 车损权益规则查看
// 车损权益规则查看
...
@@ -30,4 +29,4 @@ export function vdruleExport(data) {
...
@@ -30,4 +29,4 @@ export function vdruleExport(data) {
export
function
getshopMerchantList
(
data
)
{
export
function
getshopMerchantList
(
data
)
{
data
.
method
=
`dj.smartcarlife.api.shopMerchant.list`
data
.
method
=
`dj.smartcarlife.api.shopMerchant.list`
return
request
(
data
)
return
request
(
data
)
}
\ No newline at end of file
\ No newline at end of file
}
src/views/customer/editCustomer.vue
View file @
bcbc914
This diff is collapsed.
Click to expand it.
src/views/customer/recordList.vue
View file @
bcbc914
...
@@ -279,10 +279,10 @@ export default {
...
@@ -279,10 +279,10 @@ export default {
this
.
baseData
.
parkServiceList
=
res
this
.
baseData
.
parkServiceList
=
res
this
.
getOptionsList
()
this
.
getOptionsList
()
})
})
if
(
!
this
.
userInfo
.
beSuper
)
{
//
if (!this.userInfo.beSuper) {
this
.
showFormData
=
this
.
showFormData
.
filter
(
item
=>
item
.
name
!==
'yqMerchantId'
)
//
this.showFormData = this.showFormData.filter(item => item.name !== 'yqMerchantId')
this
.
getServiceStore
(
this
.
userInfo
.
detail
.
merchantId
)
//
this.getServiceStore(this.userInfo.detail.merchantId)
}
//
}
},
},
methods
:
{
methods
:
{
...
@@ -290,7 +290,7 @@ export default {
...
@@ -290,7 +290,7 @@ export default {
beforeSearchFn
()
{
beforeSearchFn
()
{
return
new
Promise
(
resolve
=>
{
return
new
Promise
(
resolve
=>
{
this
.
tableSearchForm
=
deepClone
(
this
.
searchForm
)
this
.
tableSearchForm
=
deepClone
(
this
.
searchForm
)
!
this
.
userInfo
.
beSuper
&&
(
this
.
tableSearchForm
.
yqMerchantId
=
this
.
userInfo
.
detail
.
merchantId
)
//
!this.userInfo.beSuper && (this.tableSearchForm.yqMerchantId = this.userInfo.detail.merchantId)
if
(
this
.
tableSearchForm
.
entryTime
)
{
if
(
this
.
tableSearchForm
.
entryTime
)
{
this
.
tableSearchForm
.
startDate
=
new
Date
(
this
.
tableSearchForm
.
entryTime
[
0
]).
toLocaleDateString
().
replace
(
/
\/
/g
,
'-'
)
+
' 00:00:00'
this
.
tableSearchForm
.
startDate
=
new
Date
(
this
.
tableSearchForm
.
entryTime
[
0
]).
toLocaleDateString
().
replace
(
/
\/
/g
,
'-'
)
+
' 00:00:00'
this
.
tableSearchForm
.
endDate
=
new
Date
(
this
.
tableSearchForm
.
entryTime
[
1
]).
toLocaleDateString
().
replace
(
/
\/
/g
,
'-'
)
+
' 23:59:59'
this
.
tableSearchForm
.
endDate
=
new
Date
(
this
.
tableSearchForm
.
entryTime
[
1
]).
toLocaleDateString
().
replace
(
/
\/
/g
,
'-'
)
+
' 23:59:59'
...
@@ -309,7 +309,8 @@ export default {
...
@@ -309,7 +309,8 @@ export default {
baseGoodsId
:
''
,
baseGoodsId
:
''
,
merchantId
:
''
merchantId
:
''
}
}
this
.
userInfo
.
beSuper
&&
(
this
.
baseData
.
storeIdList
=
[])
// this.userInfo.beSuper && (this.baseData.storeIdList = [])
this
.
baseData
.
storeIdList
=
[]
this
.
baseData
.
adviserList
=
[]
this
.
baseData
.
adviserList
=
[]
this
.
baseData
.
goodList
=
[]
this
.
baseData
.
goodList
=
[]
this
.
getOptionsList
()
this
.
getOptionsList
()
...
@@ -359,7 +360,8 @@ export default {
...
@@ -359,7 +360,8 @@ export default {
},
},
handleImport
()
{
handleImport
()
{
this
.
fileForm
=
{
this
.
fileForm
=
{
yqMerchantId
:
this
.
userInfo
.
beSuper
?
''
:
this
.
userInfo
.
detail
.
merchantId
,
// yqMerchantId: this.userInfo.beSuper ? '' : this.userInfo.detail.merchantId,
yqMerchantId
:
''
,
fileName
:
''
fileName
:
''
}
}
this
.
showNum
=
false
this
.
showNum
=
false
...
@@ -387,7 +389,8 @@ export default {
...
@@ -387,7 +389,8 @@ export default {
var
params
=
{
var
params
=
{
advanceUserId
:
this
.
userInfo
.
detail
.
uuid
,
advanceUserId
:
this
.
userInfo
.
detail
.
uuid
,
advanceUserName
:
this
.
userInfo
.
merchantAccountLevel
==
4
?
this
.
userInfo
.
detail
.
userName
:
this
.
userInfo
.
detail
.
merchantName
,
advanceUserName
:
this
.
userInfo
.
merchantAccountLevel
==
4
?
this
.
userInfo
.
detail
.
userName
:
this
.
userInfo
.
detail
.
merchantName
,
yqMerchantId
:
this
.
userInfo
.
beSuper
?
this
.
fileForm
.
yqMerchantId
:
this
.
userInfo
.
detail
.
merchantId
,
// yqMerchantId: this.userInfo.beSuper ? this.fileForm.yqMerchantId : this.userInfo.detail.merchantId,
yqMerchantId
:
this
.
fileForm
.
yqMerchantId
,
file
:
this
.
fileInfo
file
:
this
.
fileInfo
}
}
recordUpload
(
params
).
then
(
res
=>
{
recordUpload
(
params
).
then
(
res
=>
{
...
...
src/views/rightsAndInterestsManage/components/ruleConfigurationDialog.vue
View file @
bcbc914
...
@@ -403,6 +403,7 @@ export default {
...
@@ -403,6 +403,7 @@ export default {
carPriceUpperLimit
:
"30"
carPriceUpperLimit
:
"30"
})
})
delete
params
.
vdRuleIntervalList
delete
params
.
vdRuleIntervalList
delete
params
.
quotationGoodsInfo
resolve
(
params
)
resolve
(
params
)
})
})
}
else
{
}
else
{
...
@@ -410,6 +411,7 @@ export default {
...
@@ -410,6 +411,7 @@ export default {
if
(
valid
)
{
if
(
valid
)
{
const
form
=
deepClone
(
this
.
form
)
const
form
=
deepClone
(
this
.
form
)
const
storeForm
=
deepClone
(
this
.
storeForm
)
const
storeForm
=
deepClone
(
this
.
storeForm
)
delete
storeForm
.
quotationGoodsInfo
resolve
({
...
storeForm
,
vdRuleIntervalList
:
form
.
vdRuleIntervalList
}
resolve
({
...
storeForm
,
vdRuleIntervalList
:
form
.
vdRuleIntervalList
}
)
)
}
}
...
...
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