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 641d7297
authored
Feb 15, 2022
by
杨北旺
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
更换接口入口
1 parent
6619bbf2
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
39 additions
and
38 deletions
src/api/modules/ghBeforeSale.js
src/views/ghPreSale/editEquity.vue
src/views/ghPreSale/equityList.vue
src/views/ghPreSale/financeIndex.vue
src/views/ghPreSale/serviceSet.vue
src/api/modules/ghBeforeSale.js
View file @
641d729
import
{
http
}
from
'@/main'
import
{
http
,
http_brand
}
from
'@/main'
const
defaultPath
=
'scrm.api.equity.service.package.'
const
orderPath
=
'scrm.api.equity.service.order.'
...
...
@@ -67,7 +67,7 @@ const getPriteApi = params => {
const
getCarBrandListApi
=
params
=>
{
// params.method = 'dj.api.car.series.list'
params
.
method
=
'scrm.api.carlife.common.getCarBrandList'
return
http
({
return
http
_brand
({
url
:
'rop-scrm-carlife/router'
,
method
:
'GET'
,
data
:
params
,
...
...
@@ -78,7 +78,7 @@ const getCarBrandListApi = params => {
const
getCarChildListApi
=
params
=>
{
// params.method = 'dj.api.car.series.list'
params
.
method
=
'scrm.api.carlife.common.getOnlyCarBrandList'
return
http
({
return
http
_brand
({
url
:
'rop-scrm-carlife/router'
,
method
:
'GET'
,
data
:
params
,
...
...
@@ -88,7 +88,7 @@ const getCarChildListApi = params => {
const
getCarSeriesListApi
=
params
=>
{
params
.
method
=
'scrm.api.carlife.common.getCarSeriesList'
return
http
({
return
http
_brand
({
url
:
'rop-scrm-carlife/router'
,
method
:
'GET'
,
data
:
params
,
...
...
@@ -98,7 +98,7 @@ const getCarSeriesListApi = params => {
const
getCarTypeListApi
=
params
=>
{
params
.
method
=
'scrm.api.carlife.common.getCarTypeList'
return
http
({
return
http
_brand
({
url
:
'rop-scrm-carlife/router'
,
method
:
'GET'
,
data
:
params
,
...
...
@@ -107,7 +107,8 @@ const getCarTypeListApi = params => {
}
const
getHotlineApi
=
params
=>
{
params
.
method
=
`
${
defaultPath
}
merchant.hotline.get`
//params.method = `${defaultPath}merchant.hotline.get`
params
.
method
=
`
${
defaultPath
}
merchant.config.get`
return
http
({
url
:
'rop-scrm-equity/router'
,
method
:
'POST'
,
...
...
@@ -304,4 +305,4 @@ const aduitOrderApi = params => {
})
}
export
default
{
getUserInfoApi
,
getCountNoDataApi
,
getListApi
,
getMerchantApi
,
getExportApi
,
getPriteApi
,
getCarBrandListApi
,
getCarChildListApi
,
getCarTypeListApi
,
getCarSeriesListApi
,
getHotlineApi
,
getDefaultCarbrandApi
,
updateHotlineApi
,
updateCarBrandApi
,
getProListApi
,
getPackageListApi
,
getEquityApi
,
updateEquityApi
,
createCodeApi
,
getOrderAttrApi
,
getAllOrderValueApi
,
verifyOrderApi
,
checkOrderApi
,
updateOrderApi
,
uploadImgApi
,
backOrderApi
,
aduitOrderApi
}
\ No newline at end of file
export
default
{
getUserInfoApi
,
getCountNoDataApi
,
getListApi
,
getMerchantApi
,
getExportApi
,
getPriteApi
,
getCarBrandListApi
,
getCarChildListApi
,
getCarTypeListApi
,
getCarSeriesListApi
,
getHotlineApi
,
getDefaultCarbrandApi
,
updateHotlineApi
,
updateCarBrandApi
,
getProListApi
,
getPackageListApi
,
getEquityApi
,
updateEquityApi
,
createCodeApi
,
getOrderAttrApi
,
getAllOrderValueApi
,
verifyOrderApi
,
checkOrderApi
,
updateOrderApi
,
uploadImgApi
,
backOrderApi
,
aduitOrderApi
}
src/views/ghPreSale/editEquity.vue
View file @
641d729
...
...
@@ -543,7 +543,7 @@ export default {
},
handleCancelBubble
(
e
)
{
},
getDefaultCarbrand
()
{
this
.
$apis
.
b
eforeSale
.
getDefaultCarbrandApi
({}).
then
(
res
=>
{
this
.
$apis
.
ghB
eforeSale
.
getDefaultCarbrandApi
({}).
then
(
res
=>
{
// 获取套餐列表
this
.
getPackageList
()
if
(
res
)
{
...
...
@@ -563,7 +563,7 @@ export default {
})
},
getInfo
()
{
this
.
$apis
.
b
eforeSale
.
getEquityApi
({
contractNo
:
this
.
routeInfo
.
contractNo
}).
then
(
res
=>
{
this
.
$apis
.
ghB
eforeSale
.
getEquityApi
({
contractNo
:
this
.
routeInfo
.
contractNo
}).
then
(
res
=>
{
// console.log(res)
this
.
editForm
=
{
...
res
...
...
@@ -608,7 +608,7 @@ export default {
})
},
getPackageList
()
{
this
.
$apis
.
b
eforeSale
.
getPackageListApi
({}).
then
(
res
=>
{
this
.
$apis
.
ghB
eforeSale
.
getPackageListApi
({}).
then
(
res
=>
{
this
.
packageList
=
res
this
.
autoGenerate
()
})
...
...
@@ -755,7 +755,7 @@ export default {
// 获取品牌车型
getAllVehicleBrand
(
fn
=
()
=>
{
})
{
const
params
=
{}
this
.
$apis
.
b
eforeSale
.
getCarBrandListApi
(
params
).
then
(
res
=>
{
this
.
$apis
.
ghB
eforeSale
.
getCarBrandListApi
(
params
).
then
(
res
=>
{
this
.
baseData
.
carBrandOptions
=
res
||
[]
})
},
...
...
@@ -769,7 +769,7 @@ export default {
},
// 获取子品牌
getCarChildList
(
isRecovery
=
false
,
isDefault
=
false
)
{
this
.
$apis
.
b
eforeSale
.
getCarChildListApi
({}).
then
(
res
=>
{
this
.
$apis
.
ghB
eforeSale
.
getCarChildListApi
({}).
then
(
res
=>
{
this
.
allCarChildList
=
res
||
[]
if
(
isRecovery
)
{
this
.
baseData
.
carChildOptions
=
this
.
allCarChildList
.
find
(
item
=>
item
.
id
==
this
.
editForm
.
vehicle
.
vehicleBrandId
).
childs
...
...
@@ -789,7 +789,7 @@ export default {
brandId
:
this
.
editForm
.
vehicle
.
vehicleBrandId
,
childBrandId
:
this
.
editForm
.
vehicle
.
vehicleSubBrandId
}
this
.
$apis
.
b
eforeSale
.
getCarSeriesListApi
(
params
).
then
(
res
=>
{
this
.
$apis
.
ghB
eforeSale
.
getCarSeriesListApi
(
params
).
then
(
res
=>
{
this
.
baseData
.
carSeriesOptions
=
res
||
[]
})
},
...
...
@@ -802,7 +802,7 @@ export default {
const
params
=
{
carSeriesId
:
this
.
editForm
.
vehicle
.
vehicleSeriesId
}
this
.
$apis
.
b
eforeSale
.
getCarTypeListApi
(
params
).
then
(
res
=>
{
this
.
$apis
.
ghB
eforeSale
.
getCarTypeListApi
(
params
).
then
(
res
=>
{
this
.
baseData
.
carTypeOptions
=
res
||
[]
})
},
...
...
@@ -889,7 +889,7 @@ export default {
this
.
updateEquity
(
params
)
},
updateEquity
(
params
)
{
this
.
$apis
.
b
eforeSale
.
updateEquityApi
(
params
).
then
(
res
=>
{
this
.
$apis
.
ghB
eforeSale
.
updateEquityApi
(
params
).
then
(
res
=>
{
this
.
submit
=
false
if
(
res
.
errId
==
'A1307'
)
{
this
.
whereToGo
(
'vin'
)
...
...
@@ -939,7 +939,7 @@ export default {
}
else
{
params
.
contractNo
=
''
}
this
.
$apis
.
b
eforeSale
.
checkOrderApi
({
vin
:
this
.
editForm
.
vehicle
.
vin
,
contractNo
:
this
.
routeInfo
.
contractNo
||
''
}).
then
(
res
=>
{
this
.
$apis
.
ghB
eforeSale
.
checkOrderApi
({
vin
:
this
.
editForm
.
vehicle
.
vin
,
contractNo
:
this
.
routeInfo
.
contractNo
||
''
}).
then
(
res
=>
{
if
(
res
.
code
==
'0'
)
{
this
.
updateEquity
(
params
)
}
else
{
...
...
@@ -978,7 +978,7 @@ export default {
billingDate
:
new
Date
()
}
}
this
.
$apis
.
b
eforeSale
.
getDefaultCarbrandApi
({}).
then
(
res
=>
{
this
.
$apis
.
ghB
eforeSale
.
getDefaultCarbrandApi
({}).
then
(
res
=>
{
if
(
res
)
{
this
.
defaultBrandForm
.
vehicleBrandId
=
res
.
vehicleBrandId
this
.
defaultBrandForm
.
vehicleSubBrandId
=
res
.
vehicleSubBrandId
...
...
src/views/ghPreSale/equityList.vue
View file @
641d729
...
...
@@ -258,7 +258,7 @@ export default {
}
],
// 表格
getListApi
:
this
.
$apis
.
b
eforeSale
.
getListApi
,
getListApi
:
this
.
$apis
.
ghB
eforeSale
.
getListApi
,
tableParams
:
{
listName
:
'list'
,
tableOption
:
false
,
...
...
@@ -529,12 +529,12 @@ export default {
this
.
isTipVisible
=
false
},
this
.
editNotify
.
code
==
'0'
?
1500
:
3000
)
}
this
.
$apis
.
b
eforeSale
.
getProListApi
({}).
then
(
res
=>
{
this
.
$apis
.
ghB
eforeSale
.
getProListApi
({}).
then
(
res
=>
{
this
.
baseData
.
goodsStatusList
=
res
this
.
getOptionsList
(
'searchFormData'
)
})
this
.
getCountNoData
()
this
.
$apis
.
b
eforeSale
.
getUserInfoApi
({}).
then
(
res
=>
{
this
.
$apis
.
ghB
eforeSale
.
getUserInfoApi
({}).
then
(
res
=>
{
this
.
userInfo
=
res
if
(
res
.
merchantAccountLevel
!=
4
)
{
var
idx
=
this
.
searchFormData
.
findIndex
(
item
=>
item
.
name
==
this
.
levelToShow
[
this
.
userInfo
.
admin
?
res
.
merchantAccountLevel
:
res
.
merchantAccountLevel
+
1
])
...
...
@@ -546,7 +546,7 @@ export default {
methods
:
{
getCountNoData
()
{
this
.
$apis
.
b
eforeSale
.
getCountNoDataApi
({}).
then
(
res
=>
{
this
.
$apis
.
ghB
eforeSale
.
getCountNoDataApi
({}).
then
(
res
=>
{
this
.
countNoData
=
res
})
},
...
...
@@ -555,7 +555,7 @@ export default {
merchantId
:
merchantId
,
accountLevel
:
accountLevel
}
this
.
$apis
.
b
eforeSale
.
getMerchantApi
(
params
).
then
(
res
=>
{
this
.
$apis
.
ghB
eforeSale
.
getMerchantApi
(
params
).
then
(
res
=>
{
this
.
baseData
[
listName
]
=
res
this
.
getOptionsList
(
'searchFormData'
,
false
,
attrName
)
})
...
...
@@ -700,7 +700,7 @@ export default {
return
true
}
this
.
handlePdfClose
()
this
.
$apis
.
b
eforeSale
.
getPriteApi
({
contractNo
:
row
.
contractNo
}).
then
(
res
=>
{
this
.
$apis
.
ghB
eforeSale
.
getPriteApi
({
contractNo
:
row
.
contractNo
}).
then
(
res
=>
{
this
.
pdfUrl
=
res
})
},
...
...
@@ -712,7 +712,7 @@ export default {
attachmentFile
:
imgUrl
,
attachmentType
:
'IMG'
}
this
.
$apis
.
b
eforeSale
.
updateOrderApi
(
params
).
then
(
res
=>
{
this
.
$apis
.
ghB
eforeSale
.
updateOrderApi
(
params
).
then
(
res
=>
{
this
.
$message
({
message
:
res
.
code
==
'0'
?
'操作成功'
:
res
.
message
,
type
:
res
.
code
==
'0'
?
'success'
:
'error'
...
...
@@ -739,7 +739,7 @@ export default {
const
imgFile
=
e
.
target
.
result
const
base64
=
file
.
name
.
split
(
'.'
)[
1
]
+
'@'
+
imgFile
.
split
(
','
)[
1
]
var
imgUrl
=
''
this
.
$apis
.
b
eforeSale
.
uploadImgApi
({
file
:
base64
,
fileType
:
'image'
}).
then
(
res
=>
{
this
.
$apis
.
ghB
eforeSale
.
uploadImgApi
({
file
:
base64
,
fileType
:
'image'
}).
then
(
res
=>
{
this
.
uploadFile
(
res
,
targetItem
)
})
}
...
...
@@ -760,10 +760,10 @@ export default {
this
.
isFileVisible
=
!
this
.
isFileVisible
},
handleUpload
(
row
)
{
this
.
$apis
.
b
eforeSale
.
getOrderAttrApi
({
packageCode
:
row
.
packageCode
}).
then
(
res
=>
{
this
.
$apis
.
ghB
eforeSale
.
getOrderAttrApi
({
packageCode
:
row
.
packageCode
}).
then
(
res
=>
{
this
.
packageList
=
res
this
.
uploadForm
.
contractNo
=
row
.
contractNo
this
.
$apis
.
b
eforeSale
.
getAllOrderValueApi
({
contractNo
:
row
.
contractNo
}).
then
(
subRes
=>
{
this
.
$apis
.
ghB
eforeSale
.
getAllOrderValueApi
({
contractNo
:
row
.
contractNo
}).
then
(
subRes
=>
{
var
idx
=
''
this
.
packageList
.
forEach
(
item
=>
{
idx
=
subRes
.
findIndex
(
i
=>
i
.
attachmentCode
==
item
.
attachmentCode
)
...
...
@@ -790,7 +790,7 @@ export default {
// 导出
handleExport
()
{
var
params
=
this
.
getParams
()
this
.
$apis
.
b
eforeSale
.
getExportApi
(
params
).
then
(
res
=>
{
this
.
$apis
.
ghB
eforeSale
.
getExportApi
(
params
).
then
(
res
=>
{
window
.
open
(
res
)
})
},
...
...
src/views/ghPreSale/financeIndex.vue
View file @
641d729
...
...
@@ -223,7 +223,7 @@ export default {
}
],
// 表格
getListApi
:
this
.
$apis
.
b
eforeSale
.
getListApi
,
getListApi
:
this
.
$apis
.
ghB
eforeSale
.
getListApi
,
tableParams
:
{
listName
:
'list'
,
tableOption
:
false
,
...
...
@@ -473,11 +473,11 @@ export default {
},
mounted
()
{
this
.
$apis
.
b
eforeSale
.
getProListApi
({}).
then
(
res
=>
{
this
.
$apis
.
ghB
eforeSale
.
getProListApi
({}).
then
(
res
=>
{
this
.
baseData
.
goodsStatusList
=
res
this
.
getOptionsList
(
'searchFormData'
)
})
this
.
$apis
.
b
eforeSale
.
getUserInfoApi
({}).
then
(
res
=>
{
this
.
$apis
.
ghB
eforeSale
.
getUserInfoApi
({}).
then
(
res
=>
{
this
.
userInfo
=
res
if
(
res
.
merchantAccountLevel
!=
4
)
{
var
idx
=
this
.
searchFormData
.
findIndex
(
item
=>
item
.
name
==
this
.
levelToShow
[
this
.
userInfo
.
admin
?
res
.
merchantAccountLevel
:
res
.
merchantAccountLevel
+
1
])
...
...
@@ -493,7 +493,7 @@ export default {
merchantId
:
merchantId
,
accountLevel
:
accountLevel
}
this
.
$apis
.
b
eforeSale
.
getMerchantApi
(
params
).
then
(
res
=>
{
this
.
$apis
.
ghB
eforeSale
.
getMerchantApi
(
params
).
then
(
res
=>
{
this
.
baseData
[
listName
]
=
res
this
.
getOptionsList
(
'searchFormData'
,
false
,
attrName
)
})
...
...
@@ -607,7 +607,7 @@ export default {
// 导出
handleExport
()
{
var
params
=
this
.
getParams
()
this
.
$apis
.
b
eforeSale
.
getExportApi
(
params
).
then
(
res
=>
{
this
.
$apis
.
ghB
eforeSale
.
getExportApi
(
params
).
then
(
res
=>
{
window
.
open
(
res
)
})
},
...
...
src/views/ghPreSale/serviceSet.vue
View file @
641d729
...
...
@@ -95,13 +95,13 @@ export default {
methods
:
{
getHotline
()
{
this
.
$apis
.
b
eforeSale
.
getHotlineApi
({}).
then
(
res
=>
{
this
.
$apis
.
ghB
eforeSale
.
getHotlineApi
({}).
then
(
res
=>
{
this
.
editForm
.
hotline
=
res
.
serviceHotline
this
.
qrcodeUrl
=
res
.
qrcodeUrl
})
},
getDefaultCarbrand
()
{
this
.
$apis
.
b
eforeSale
.
getDefaultCarbrandApi
({}).
then
(
res
=>
{
this
.
$apis
.
ghB
eforeSale
.
getDefaultCarbrandApi
({}).
then
(
res
=>
{
// console.log(res)
if
(
res
)
{
this
.
editForm
.
id
=
res
.
id
...
...
@@ -114,7 +114,7 @@ export default {
// 获取品牌车型
getAllVehicleBrand
(
fn
=
()
=>
{})
{
const
params
=
{}
this
.
$apis
.
b
eforeSale
.
getCarBrandListApi
(
params
).
then
(
res
=>
{
this
.
$apis
.
ghB
eforeSale
.
getCarBrandListApi
(
params
).
then
(
res
=>
{
// console.log(res)
this
.
baseData
.
carBrandOptions
=
res
||
[]
})
...
...
@@ -125,7 +125,7 @@ export default {
},
// 获取子品牌
getCarChildList
(
isRecovery
=
false
)
{
this
.
$apis
.
b
eforeSale
.
getCarChildListApi
({}).
then
(
res
=>
{
this
.
$apis
.
ghB
eforeSale
.
getCarChildListApi
({}).
then
(
res
=>
{
this
.
allCarChildList
=
res
||
[]
if
(
isRecovery
)
{
this
.
baseData
.
carChildOptions
=
this
.
allCarChildList
.
find
(
item
=>
item
.
id
==
this
.
editForm
.
vehicleBrandId
).
childs
...
...
@@ -137,7 +137,7 @@ export default {
this
.
$refs
.
editFormRef
.
$refs
[
this
.
editChildRef
].
validate
(
valid
=>
{
if
(
valid
)
{
var
params
=
this
.
$common
.
utils
.
deepClone
(
this
.
editForm
)
Promise
.
all
([
this
.
$apis
.
beforeSale
.
updateHotlineApi
(
params
),
this
.
$apis
.
b
eforeSale
.
updateCarBrandApi
(
params
)]).
then
(([
hotlineRes
,
carBrandRes
])
=>
{
Promise
.
all
([
this
.
$apis
.
ghBeforeSale
.
updateHotlineApi
(
params
),
this
.
$apis
.
ghB
eforeSale
.
updateCarBrandApi
(
params
)]).
then
(([
hotlineRes
,
carBrandRes
])
=>
{
this
.
$message
({
message
:
hotlineRes
.
code
==
'0'
&&
carBrandRes
.
code
==
'0'
?
'操作成功'
:
'操作失败'
,
type
:
hotlineRes
.
code
==
'0'
&&
carBrandRes
.
code
==
'0'
?
'success'
:
'error'
...
...
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