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 94e39a70
authored
Jan 04, 2022
by
杨北旺
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
售前权益
1 parent
d25d3e34
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
40 additions
and
43 deletions
src/api/modules/beforeSale.js
src/setup/qiankun.js
src/views/beforeSale/checkSet.vue
src/views/beforeSale/editEquity.vue
src/views/beforeSale/equityList.vue
src/api/modules/beforeSale.js
View file @
94e39a7
...
...
@@ -161,8 +161,8 @@ const getProListApi = params => {
// 获取无忧卡套餐列表
const
getPackageListApi
=
params
=>
{
//
params.method = `scrm.api.equity.service.package.dj.list.get`
params
.
method
=
`scrm.api.equity.service.package.list.get`
params
.
method
=
`scrm.api.equity.service.package.dj.list.get`
//
params.method = `scrm.api.equity.service.package.list.get`
return
http
({
url
:
'rop-scrm-equity/router'
,
method
:
'GET'
,
...
...
@@ -283,7 +283,7 @@ const uploadImgApi = params => {
// 退保
const
backOrderApi
=
params
=>
{
params
.
method
=
`
${
orderPath
}
charge.back`
params
.
method
=
`
scrm.api.equity.service.channel.order.
charge.back`
return
http
({
url
:
'rop-scrm-equity/router'
,
method
:
'POST'
,
...
...
@@ -328,9 +328,9 @@ const spaAgressData = params => {
})
}
//
提单
const
sumbitOrder
=
params
=>
{
params
.
method
=
'scrm.api.equity.
service.channel.order.insert.or.update
'
//
店铺信息
const
merchantInfo
=
params
=>
{
params
.
method
=
'scrm.api.equity.
common.merchant.detail.det
'
return
http
({
url
:
'rop-scrm-equity/router'
,
method
:
'POST'
,
...
...
@@ -340,4 +340,4 @@ const sumbitOrder = 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
,
judgeSetting
,
spaAgressData
,
sumbitOrder
}
\ 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
,
judgeSetting
,
spaAgressData
,
merchantInfo
}
\ No newline at end of file
src/setup/qiankun.js
View file @
94e39a7
...
...
@@ -21,9 +21,9 @@ export async function bootstrap({ history, common, messenger, globalState, route
Vue
.
prototype
.
$message
=
message
Vue
.
prototype
.
$messageBox
=
messageBox
Vue
.
prototype
.
$defaultStartDate
=
'2021-07-01'
//
Vue.prototype.$http = new common.Http({ response, request, sign, secret, alert: message.error, headers: { token: globalState.session.token } })
Vue
.
prototype
.
$http
=
new
common
.
Http
({
response
,
request
,
sign
,
secret
,
alert
:
message
.
error
,
headers
:
{
token
:
'48b9a3e5-99bc-4b1d-bc7d-d9d9f0ecfbf9
'
}
})
Vue
.
prototype
.
$http_brand
=
new
common
.
Http
({
response
,
request
:
request_brand
,
sign
,
secret
,
alert
:
message
.
error
,
headers
:
{
token
:
'48b9a3e5-99bc-4b1d-bc7d-d9d9f0ecfbf9'
}
})
Vue
.
prototype
.
$http
=
new
common
.
Http
({
response
,
request
,
sign
,
secret
,
alert
:
message
.
error
,
headers
:
{
token
:
globalState
.
session
.
token
}
})
// Vue.prototype.$http = new common.Http({ response, request, sign, secret, alert: message.error, headers: { token: '33c60c02-fbb9-480a-8b54-24b30fe30983
' } })
Vue
.
prototype
.
$http_brand
=
new
common
.
Http
({
response
,
request
:
request_brand
,
sign
,
secret
,
alert
:
message
.
error
,
headers
:
{
token
:
globalState
.
session
.
token
}
})
// Vue.prototype.$setGlobalState = globalState.actions.setGlobalState
const
routesData
=
common
.
utils
.
deepClone
(
globalState
.
routers
)
routes
=
getRoutes
(
routesData
)
...
...
src/views/beforeSale/checkSet.vue
View file @
94e39a7
...
...
@@ -17,12 +17,11 @@ export default {
data
()
{
return
{
activeName
:
'equityList'
,
status
:
1
status
:
0
}
},
created
()
{
// this.isOpenSettin()
this
.
isOpenSettin
()
// this.$router.push('/beforeSale/equityList')
},
mounted
()
{},
...
...
src/views/beforeSale/editEquity.vue
View file @
94e39a7
This diff is collapsed.
Click to expand it.
src/views/beforeSale/equityList.vue
View file @
94e39a7
...
...
@@ -33,11 +33,11 @@
<!-- 表格区域 end -->
</div>
<pdf-dialog
:isVisible=
"isPdfVisible"
title=
"合同"
:pdfUrl=
"pdfUrl"
@
closeDialog=
"handlePdfClose"
></pdf-dialog>
<glsx-dialog
title=
"上传资料"
:isVisible
.
sync=
"isFileVisible"
width=
"547px"
:noCancel=
"noCancel"
btnOkLabel=
"关闭"
@
confirmDialog=
"handleUploadFileClose"
@
closeDialog=
"handleUploadFileClose"
>
<
!--
<
glsx-dialog
title=
"上传资料"
:isVisible
.
sync=
"isFileVisible"
width=
"547px"
:noCancel=
"noCancel"
btnOkLabel=
"关闭"
@
confirmDialog=
"handleUploadFileClose"
@
closeDialog=
"handleUploadFileClose"
>
<div
style=
"height: 284px; overflow-y: scroll"
>
<glsx-combi-form
labelWidth=
"300px"
:isBlock=
"isBlock"
ref=
"uploadFormRef"
formRef=
"uploadChildRef"
:formRules=
"uploadRule"
:formObj
.
sync=
"uploadForm"
:formData=
"uploadFormData"
></glsx-combi-form>
</div>
</glsx-dialog>
</glsx-dialog>
-->
<el-dialog
:visible
.
sync=
"isTipVisible"
width=
"400px"
class=
"tips-dialog"
top=
"30%"
title=
"提示"
>
<div
class=
"f-size"
>
<i
v-show=
"editNotify.code == '0'"
class=
"el-icon-success"
></i>
...
...
@@ -252,7 +252,7 @@ export default {
prop
:
'cardSeqNo'
,
width
:
'200px'
,
formatter
:
cellValue
=>
{
return
cellValue
.
carNo
||
'-'
return
cellValue
.
car
dSeq
No
||
'-'
}
},
{
...
...
@@ -454,23 +454,23 @@ export default {
components
:
{
glsxCombiForm
,
glsxDialog
,
//
glsxDialog,
pdfDialog
},
mounted
()
{
this
.
editNotify
=
this
.
$route
.
params
if
(
this
.
isFirst
&&
this
.
editNotify
.
hasOwnProperty
(
'code'
))
{
this
.
isFirst
=
false
this
.
isTipVisible
=
true
clearTimeout
(
this
.
timer
)
this
.
timer
=
setTimeout
(
()
=>
{
this
.
isTipVisible
=
false
},
this
.
editNotify
.
code
==
'0'
?
1500
:
3000
)
}
//
if (this.isFirst && this.editNotify.hasOwnProperty('code')) {
//
this.isFirst = false
//
this.isTipVisible = true
//
clearTimeout(this.timer)
//
this.timer = setTimeout(
//
() => {
//
this.isTipVisible = false
//
},
//
this.editNotify.code == '0' ? 1500 : 3000
//
)
//
}
this
.
$apis
.
beforeSale
.
getProListApi
({}).
then
(
res
=>
{
this
.
baseData
.
goodsStatusList
=
res
this
.
getOptionsList
(
'searchFormData'
)
...
...
@@ -478,11 +478,11 @@ export default {
this
.
getCountNoData
()
this
.
$apis
.
beforeSale
.
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
])
this
.
searchFormData
[
idx
].
isHide
=
false
this
.
getMerchantList
(
''
,
''
,
this
.
searchFormData
[
idx
].
name
,
this
.
searchFormData
[
idx
].
optionsName
)
}
//
if (res.merchantAccountLevel != 4) {
//
var idx = this.searchFormData.findIndex(item => item.name == this.levelToShow[this.userInfo.admin ? res.merchantAccountLevel : res.merchantAccountLevel + 1])
//
this.searchFormData[idx].isHide = false
//
this.getMerchantList('', '', this.searchFormData[idx].name, this.searchFormData[idx].optionsName)
//
}
})
},
...
...
@@ -596,20 +596,18 @@ export default {
this
.
$apis
[
this
.
secondObj
.
apiModule
][
this
.
secondObj
.
apiName
](
this
.
secondObj
.
apiParams
).
then
(
res
=>
{
// this.handleSecondCancel()
// this.isTipVisible = true
if
(
this
.
secondObj
.
title
==
'退单'
)
{
this
.
$message
({
this
.
$message
({
message
:
res
.
code
==
'0'
?
'操作成功'
:
res
.
message
,
type
:
res
.
code
==
'0'
?
'success'
:
'error'
})
}
this
.
editNotify
=
res
clearTimeout
(
this
.
timer
)
this
.
timer
=
setTimeout
(
()
=>
{
this
.
isTipVisible
=
false
},
this
.
editNotify
.
code
==
'0'
?
1500
:
3000
)
//
clearTimeout(this.timer)
//
this.timer = setTimeout(
//
() => {
//
this.isTipVisible = false
//
},
//
this.editNotify.code == '0' ? 1500 : 3000
//
)
if
(
res
.
code
==
'0'
)
{
this
.
handleSearch
()
}
...
...
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