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 2723f680
authored
Nov 23, 2021
by
cwq0219
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
提交
1 parent
7eb4f6d8
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
41 additions
and
18 deletions
src/setup/render.js
src/setup/single.js
src/views/beforeSale/editEquity.vue
src/views/beforeSale/equityList.vue
src/setup/render.js
View file @
2723f68
...
@@ -14,8 +14,8 @@ import { VueRouter } from '@/router'
...
@@ -14,8 +14,8 @@ import { VueRouter } from '@/router'
const
render
=
(
base
,
routes
)
=>
{
const
render
=
(
base
,
routes
)
=>
{
const
router
=
new
VueRouter
({
const
router
=
new
VueRouter
({
base
,
base
,
routes
,
routes
mode
:
'history'
//
mode: 'history'
})
})
const
vm
=
new
Vue
({
const
vm
=
new
Vue
({
router
,
router
,
...
...
src/setup/single.js
View file @
2723f68
...
@@ -17,6 +17,9 @@ import { routes } from '@/router'
...
@@ -17,6 +17,9 @@ import { routes } from '@/router'
export
async
function
start
()
{
export
async
function
start
()
{
if
(
window
.
__POWERED_BY_QIANKUN__
)
return
if
(
window
.
__POWERED_BY_QIANKUN__
)
return
const
{
response
,
request
,
request_brand
,
sign
,
secret
}
=
await
fetchConfig
()
const
{
response
,
request
,
request_brand
,
sign
,
secret
}
=
await
fetchConfig
()
window
.
logout
=
function
()
{
console
.
log
(
'cwq--------------'
)
}
var
urlParams
=
{}
var
urlParams
=
{}
window
.
location
.
href
.
split
(
'?'
).
length
>
1
window
.
location
.
href
.
split
(
'?'
).
length
>
1
?
window
.
location
.
href
?
window
.
location
.
href
...
...
src/views/beforeSale/editEquity.vue
View file @
2723f68
...
@@ -511,7 +511,7 @@ export default {
...
@@ -511,7 +511,7 @@ export default {
var
invoicePrice
=
(
this
.
editForm
.
vehicle
.
invoicePrice
*
100
).
toFixed
(
2
)
var
invoicePrice
=
(
this
.
editForm
.
vehicle
.
invoicePrice
*
100
).
toFixed
(
2
)
console
.
log
(
targetItem
)
console
.
log
(
targetItem
)
targetItem
&&
targetItem
.
servicePackagePrices
.
forEach
(
item
=>
{
targetItem
&&
targetItem
.
servicePackagePrices
.
forEach
(
item
=>
{
if
(
invoicePrice
>
item
.
carButtomPrice
&&
invoicePrice
<
item
.
carHighestPrice
)
{
if
(
invoicePrice
>
=
item
.
carButtomPrice
&&
invoicePrice
<
item
.
carHighestPrice
)
{
this
.
editForm
.
suggestedSellingPrice
=
(
item
.
retailPrice
/
100
).
toFixed
(
2
)
this
.
editForm
.
suggestedSellingPrice
=
(
item
.
retailPrice
/
100
).
toFixed
(
2
)
}
}
})
})
...
...
src/views/beforeSale/equityList.vue
View file @
2723f68
...
@@ -47,10 +47,17 @@ export default {
...
@@ -47,10 +47,17 @@ export default {
return
{
return
{
size
:
'small'
,
size
:
'small'
,
userInfo
:
{},
userInfo
:
{},
levelToShow
:
{
1
:
'merchantId'
,
2
:
'dqtId'
,
3
:
'pqId'
,
4
:
'mdId'
},
searchForm
:
{
searchForm
:
{
queryText
:
''
,
queryText
:
''
,
orderStatus
:
''
,
orderStatus
:
''
,
packageCode
:
''
,
packageCode
:
''
,
merchantId
:
''
,
successDate
:
[],
successDate
:
[],
effectiveDate
:
[]
effectiveDate
:
[]
},
},
...
@@ -107,13 +114,19 @@ export default {
...
@@ -107,13 +114,19 @@ export default {
},
},
{
{
label
:
'总部'
,
label
:
'总部'
,
name
:
'merchantId
s
'
,
name
:
'merchantId'
,
type
:
'select'
,
type
:
'select'
,
optionList
:
[],
optionList
:
[],
optionId
:
'
conf
Id'
,
optionId
:
'
merchant
Id'
,
optionLabel
:
'
conf
Name'
,
optionLabel
:
'
merchant
Name'
,
optionsName
:
'merchantList'
,
optionsName
:
'merchantList'
,
isHide
:
true
isHide
:
true
,
changeAttr
:
val
=>
{
console
.
log
(
val
)
var
idx
=
this
.
searchFormData
.
findIndex
(
item
=>
item
.
name
==
this
.
levelToShow
[
'2'
])
this
.
searchFormData
[
idx
].
isHide
=
false
this
.
getMerchantList
(
val
,
2
,
this
.
searchFormData
[
idx
].
name
,
this
.
searchFormData
[
idx
].
optionsName
)
}
},
},
{
{
label
:
'大区'
,
label
:
'大区'
,
...
@@ -326,22 +339,28 @@ export default {
...
@@ -326,22 +339,28 @@ export default {
this
.
getOptionsList
(
'searchFormData'
)
this
.
getOptionsList
(
'searchFormData'
)
})
})
this
.
$apis
.
beforeSale
.
getUserInfoApi
({}).
then
(
res
=>
{
this
.
$apis
.
beforeSale
.
getUserInfoApi
({}).
then
(
res
=>
{
console
.
log
(
res
)
this
.
userInfo
=
res
this
.
userInfo
=
res
var
levelToShow
=
{
var
idx
=
this
.
searchFormData
.
findIndex
(
item
=>
item
.
name
==
this
.
levelToShow
[
res
.
merchantAccountLevel
])
1
:
'merchantIds'
,
this
.
searchFormData
[
idx
].
isHide
=
false
2
:
'dqtId'
,
this
.
baseData
[
this
.
searchFormData
[
idx
].
optionsName
]
=
[{
3
:
'pqId'
,
merchantNo
:
this
.
userInfo
.
merchantNo
,
4
:
'mdId'
merchantName
:
this
.
userInfo
.
merchantName
}
}]
this
.
getOptionsList
(
'searchFormData'
,
false
,
this
.
searchFormData
[
idx
].
name
)
// this.getMerchantList(this.userInfo.merchantNo, this.userInfo.merchantAccountLevel, this.searchFormData[idx].name, this.searchFormData[idx].optionsName)
})
})
// this.getMerchantList('', 'merchantIds', 'merchantList')
},
},
methods
:
{
methods
:
{
getMerchantList
(
id
,
attrName
,
listName
)
{
getMerchantList
(
merchantId
,
accountLevel
,
attrName
,
listName
)
{
var
params
=
{}
var
params
=
{
// this.$apis.beforeSearchFn.getMerchantApi()
merchantId
:
merchantId
,
accountLevel
:
accountLevel
}
this
.
$apis
.
beforeSale
.
getMerchantApi
(
params
).
then
(
res
=>
{
this
.
baseData
[
listName
]
=
res
this
.
getOptionsList
(
'searchFormData'
,
false
,
attrName
)
})
},
},
getParams
()
{
getParams
()
{
var
params
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
searchForm
))
var
params
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
searchForm
))
...
@@ -537,6 +556,7 @@ export default {
...
@@ -537,6 +556,7 @@ export default {
this
.
searchForm
=
{
this
.
searchForm
=
{
queryText
:
''
,
queryText
:
''
,
orderStatus
:
''
,
orderStatus
:
''
,
merchantId
:
''
,
successDate
:
[],
successDate
:
[],
effectiveDate
:
[]
effectiveDate
:
[]
}
}
...
...
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