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
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
30 additions
and
26 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'
const
path
=
'dj.api.smartcarlife.'
import
request
from
"./request"
const
path
=
"dj.api.smartcarlife."
// 车损权益规则分页列表
export
function
getList
(
data
)
{
data
.
method
=
`
${
path
}
vdrule.page`
return
request
(
data
)
data
.
method
=
`
${
path
}
vdrule.page`
return
request
(
data
)
}
// 车损权益规则新增/编辑
export
function
insertorUpdate
(
data
)
{
data
.
method
=
`
${
path
}
vdrule.insertorupdate`
return
request
(
data
)
data
.
method
=
`
${
path
}
vdrule.insertorupdate`
return
request
(
data
,
"Post"
)
}
// 车损权益规则查看
export
function
quotationDetail
(
data
)
{
data
.
method
=
`
${
path
}
vdrule.detail`
return
request
(
data
)
data
.
method
=
`
${
path
}
vdrule.detail`
return
request
(
data
)
}
// 车损权益规则导出
export
function
vdruleExport
(
data
)
{
data
.
method
=
`
${
path
}
vdrule.export`
return
request
(
data
)
data
.
method
=
`
${
path
}
vdrule.export`
return
request
(
data
)
}
export
function
getshopMerchantList
(
data
)
{
data
.
method
=
`dj.smartcarlife.api.shopMerchant.list`
return
request
(
data
)
}
\ No newline at end of file
data
.
method
=
`dj.smartcarlife.api.shopMerchant.list`
return
request
(
data
)
}
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 {
this
.
baseData
.
parkServiceList
=
res
this
.
getOptionsList
()
})
if
(
!
this
.
userInfo
.
beSuper
)
{
this
.
showFormData
=
this
.
showFormData
.
filter
(
item
=>
item
.
name
!==
'yqMerchantId'
)
this
.
getServiceStore
(
this
.
userInfo
.
detail
.
merchantId
)
}
//
if (!this.userInfo.beSuper) {
//
this.showFormData = this.showFormData.filter(item => item.name !== 'yqMerchantId')
//
this.getServiceStore(this.userInfo.detail.merchantId)
//
}
},
methods
:
{
...
...
@@ -290,7 +290,7 @@ export default {
beforeSearchFn
()
{
return
new
Promise
(
resolve
=>
{
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
)
{
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'
...
...
@@ -309,7 +309,8 @@ export default {
baseGoodsId
:
''
,
merchantId
:
''
}
this
.
userInfo
.
beSuper
&&
(
this
.
baseData
.
storeIdList
=
[])
// this.userInfo.beSuper && (this.baseData.storeIdList = [])
this
.
baseData
.
storeIdList
=
[]
this
.
baseData
.
adviserList
=
[]
this
.
baseData
.
goodList
=
[]
this
.
getOptionsList
()
...
...
@@ -359,7 +360,8 @@ export default {
},
handleImport
()
{
this
.
fileForm
=
{
yqMerchantId
:
this
.
userInfo
.
beSuper
?
''
:
this
.
userInfo
.
detail
.
merchantId
,
// yqMerchantId: this.userInfo.beSuper ? '' : this.userInfo.detail.merchantId,
yqMerchantId
:
''
,
fileName
:
''
}
this
.
showNum
=
false
...
...
@@ -387,7 +389,8 @@ export default {
var
params
=
{
advanceUserId
:
this
.
userInfo
.
detail
.
uuid
,
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
}
recordUpload
(
params
).
then
(
res
=>
{
...
...
src/views/rightsAndInterestsManage/components/ruleConfigurationDialog.vue
View file @
bcbc914
...
...
@@ -119,8 +119,8 @@
<el-form-item
required
label=
"价格区间:"
class=
"sectionCon"
>
<el-col
:span=
"8"
>
<el-form-item
:prop=
"'vdRuleIntervalList.' + index + '.low'"
:rules=
"[
{ required: true, message: '请输入最低价格区间', trigger: 'change' }
]"
>
{ required: true, message: '请输入最低价格区间', trigger: 'change' }
]"
>
<el-input
:disabled=
"isEdit"
v-model=
"item.low"
>
<
template
slot=
"append"
>
万元
</
template
>
</el-input>
...
...
@@ -131,8 +131,8 @@
</el-col>
<el-col
:span=
"8"
>
<el-form-item
:prop=
"'vdRuleIntervalList.' + index + '.high'"
:rules=
"[{ required: true, message: '请输入最高价格区间', trigger: 'change' },
{ validator: (rule, value, callback) => { validateAccount(rule, value, callback, item) }, trigger: 'change' }
]"
>
{ validator: (rule, value, callback) => { validateAccount(rule, value, callback, item) }, trigger: 'change' }
]"
>
<el-input
:disabled=
"isEdit"
v-model=
"item.high"
>
<
template
slot=
"append"
>
万元
</
template
>
</el-input>
...
...
@@ -403,6 +403,7 @@ export default {
carPriceUpperLimit
:
"30"
})
delete
params
.
vdRuleIntervalList
delete
params
.
quotationGoodsInfo
resolve
(
params
)
})
}
else
{
...
...
@@ -410,6 +411,7 @@ export default {
if
(
valid
)
{
const
form
=
deepClone
(
this
.
form
)
const
storeForm
=
deepClone
(
this
.
storeForm
)
delete
storeForm
.
quotationGoodsInfo
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