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 795c1c90
authored
Mar 03, 2022
by
杨北旺
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
提交超管失败弹框
1 parent
ed6ce38c
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
79 additions
and
7 deletions
src/api/modules/ghBeforeSale.js
src/views/ghPreSale/equityList.vue
src/api/modules/ghBeforeSale.js
View file @
795c1c9
...
@@ -340,5 +340,16 @@ const judgeSetting = params => {
...
@@ -340,5 +340,16 @@ const judgeSetting = params => {
})
})
}
}
const
failHttpByAdmin
=
params
=>
{
params
.
method
=
`scrm.api.equity.service.order.resend.ero.transmission`
return
http
({
url
:
'rop-scrm-equity/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
,
returnAll
:
false
})
}
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
,
delImgApi
,
getSalesPersonApi
,
judgeSetting
}
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
,
delImgApi
,
getSalesPersonApi
,
judgeSetting
,
failHttpByAdmin
}
src/views/ghPreSale/equityList.vue
View file @
795c1c9
...
@@ -34,7 +34,7 @@
...
@@ -34,7 +34,7 @@
<GLButton
v-if=
"[2,8,10,11].includes(scope.scope.orderStatus)&&(!scope.scope.hasPrint)"
fn=
"修改"
type=
"text"
@
click=
"handleEdit(3, scope.scope)"
>
修改
</GLButton>
<GLButton
v-if=
"[2,8,10,11].includes(scope.scope.orderStatus)&&(!scope.scope.hasPrint)"
fn=
"修改"
type=
"text"
@
click=
"handleEdit(3, scope.scope)"
>
修改
</GLButton>
<el-button
v-if=
"[2,8,10,11].includes(scope.scope.orderStatus)"
type=
"text"
@
click=
"handleBack(scope.scope)"
>
退单
</el-button>
<el-button
v-if=
"[2,8,10,11].includes(scope.scope.orderStatus)"
type=
"text"
@
click=
"handleBack(scope.scope)"
>
退单
</el-button>
<GLButton
v-if=
"[1,3, 4, 5].includes(scope.scope.orderStatus)"
fn=
"重新提单"
type=
"text"
@
click=
"handleEdit(4, scope.scope)"
>
重新提单
</GLButton>
<GLButton
v-if=
"[1,3, 4, 5].includes(scope.scope.orderStatus)"
fn=
"重新提单"
type=
"text"
@
click=
"handleEdit(4, scope.scope)"
>
重新提单
</GLButton>
<
!--
<el-button
v-if=
"[3, 4, 5].includes(scope.scope.orderStatus)"
type=
"text"
@
click=
"handleEdit(4, scope.scope)"
>
重新提单
</el-button>
--
>
<
el-button
v-if=
"userInfo.admin"
type=
"text"
@
click=
"showFailModal(scope.scope)"
>
失败
</el-button
>
</div>
</div>
</GLTable>
</GLTable>
...
@@ -68,6 +68,23 @@
...
@@ -68,6 +68,23 @@
<el-button
:size=
"size"
type=
"primary"
@
click=
"handleSecondConfirm"
>
确 定
</el-button>
<el-button
:size=
"size"
type=
"primary"
@
click=
"handleSecondConfirm"
>
确 定
</el-button>
</span>
</span>
</el-dialog>
</el-dialog>
<el-dialog
:visible
.
sync=
"isShowFail"
width=
"400px"
class=
"tips-dialog"
title=
"失败原因"
>
<div
class=
"dialog_modal"
>
<span
class=
"dialog_title"
>
失败原因
</span>
<el-select
v-model=
"failValue"
clearable
placeholder=
"请选择"
>
<el-option
v-for=
"item in failList"
:key=
"item.value"
:label=
"item.label"
:value=
"item.value"
>
</el-option>
</el-select>
</div>
<span
slot=
"footer"
class=
"dialog-footer"
>
<el-button
:size=
"size"
@
click=
"handleFailCancel"
>
取 消
</el-button>
<el-button
:size=
"size"
type=
"primary"
@
click=
"handleFailConfirm"
>
确 定
</el-button>
</span>
</el-dialog>
</
template
>
</
template
>
</div>
</div>
</template>
</template>
...
@@ -83,6 +100,18 @@ export default {
...
@@ -83,6 +100,18 @@ export default {
name
:
'equityList'
,
name
:
'equityList'
,
data
()
{
data
()
{
return
{
return
{
failValue
:
''
,
failList
:[{
value
:
1
,
label
:
'ERP出单失败'
},{
value
:
2
,
label
:
'ERP修改失败'
},{
value
:
3
,
label
:
'ERP退单失败'
},],
isShowFail
:
false
,
showPage
:
0
,
showPage
:
0
,
openCostPrice
:
0
,
//是否展示门店成本
openCostPrice
:
0
,
//是否展示门店成本
size
:
'small'
,
size
:
'small'
,
...
@@ -355,7 +384,8 @@ export default {
...
@@ -355,7 +384,8 @@ export default {
confName
:
'已审核'
confName
:
'已审核'
}
}
]
]
}
},
isAdmin
:
false
}
}
},
},
components
:
{
components
:
{
...
@@ -836,7 +866,7 @@ export default {
...
@@ -836,7 +866,7 @@ export default {
prop
:
'contractNo'
,
prop
:
'contractNo'
,
width
:
'200px'
,
width
:
'200px'
,
formatter
:
cellValue
=>
{
formatter
:
cellValue
=>
{
return
[
2
,
4
,
5
].
includes
(
cellValue
.
orderStatus
)
?
(
cellValue
.
contractNo
||
'-'
)
:
'-'
return
[
2
,
4
,
5
,
7
,
8
,
9
,
10
,
11
].
includes
(
cellValue
.
orderStatus
)
?
(
cellValue
.
contractNo
||
'-'
)
:
'-'
}
}
},
},
{
{
...
@@ -959,7 +989,7 @@ export default {
...
@@ -959,7 +989,7 @@ export default {
line
:
1
,
line
:
1
,
formatter
:
cellValue
=>
{
formatter
:
cellValue
=>
{
var
auditStatusTxt
=
'-'
var
auditStatusTxt
=
'-'
if
([
2
,
4
,
5
].
includes
(
cellValue
.
orderStatus
))
{
if
([
2
,
4
,
5
,
7
,
8
,
9
,
10
,
11
].
includes
(
cellValue
.
orderStatus
))
{
auditStatusTxt
=
this
.
baseData
.
auditStatusList
.
map
(
item
=>
item
.
confId
).
includes
(
cellValue
.
auditStatus
)
?
this
.
baseData
.
auditStatusList
.
find
(
item
=>
item
.
confId
==
cellValue
.
auditStatus
).
confName
:
'-'
auditStatusTxt
=
this
.
baseData
.
auditStatusList
.
map
(
item
=>
item
.
confId
).
includes
(
cellValue
.
auditStatus
)
?
this
.
baseData
.
auditStatusList
.
find
(
item
=>
item
.
confId
==
cellValue
.
auditStatus
).
confName
:
'-'
}
}
return
auditStatusTxt
return
auditStatusTxt
...
@@ -1063,7 +1093,7 @@ export default {
...
@@ -1063,7 +1093,7 @@ export default {
prop
:
'contractNo'
,
prop
:
'contractNo'
,
width
:
'200px'
,
width
:
'200px'
,
formatter
:
cellValue
=>
{
formatter
:
cellValue
=>
{
return
[
2
,
4
,
5
].
includes
(
cellValue
.
orderStatus
)
?
(
cellValue
.
contractNo
||
'-'
)
:
'-'
return
[
2
,
4
,
5
,
7
,
8
,
9
,
10
,
11
].
includes
(
cellValue
.
orderStatus
)
?
(
cellValue
.
contractNo
||
'-'
)
:
'-'
}
}
},
},
{
{
...
@@ -1194,7 +1224,7 @@ export default {
...
@@ -1194,7 +1224,7 @@ export default {
line
:
1
,
line
:
1
,
formatter
:
cellValue
=>
{
formatter
:
cellValue
=>
{
var
auditStatusTxt
=
'-'
var
auditStatusTxt
=
'-'
if
([
2
,
4
,
5
].
includes
(
cellValue
.
orderStatus
))
{
if
([
2
,
4
,
5
,
7
,
8
,
9
,
10
,
11
].
includes
(
cellValue
.
orderStatus
))
{
auditStatusTxt
=
this
.
baseData
.
auditStatusList
.
map
(
item
=>
item
.
confId
).
includes
(
cellValue
.
auditStatus
)
?
this
.
baseData
.
auditStatusList
.
find
(
item
=>
item
.
confId
==
cellValue
.
auditStatus
).
confName
:
'-'
auditStatusTxt
=
this
.
baseData
.
auditStatusList
.
map
(
item
=>
item
.
confId
).
includes
(
cellValue
.
auditStatus
)
?
this
.
baseData
.
auditStatusList
.
find
(
item
=>
item
.
confId
==
cellValue
.
auditStatus
).
confName
:
'-'
}
}
return
auditStatusTxt
return
auditStatusTxt
...
@@ -1288,6 +1318,31 @@ export default {
...
@@ -1288,6 +1318,31 @@ export default {
tableOption
:
false
,
tableOption
:
false
,
tableColumns
:
status
==
1
?
tableColumnsCost
:
tableColumns
tableColumns
:
status
==
1
?
tableColumnsCost
:
tableColumns
}
}
},
// 展示失败弹框选择
showFailModal
(
row
){
this
.
currentContractNo
=
row
.
contractNo
this
.
isShowFail
=
true
},
handleFailConfirm
(){
if
(
!
this
.
failValue
){
this
.
$message
({
message
:
'请选择失败原因'
,
type
:
'error'
})
return
}
let
para
=
{
contractNo
:
this
.
currentContractNo
,
businessType
:
this
.
failValue
}
this
.
$apis
.
ghBeforeSale
.
failHttpByAdmin
(
para
).
then
(
res
=>
{
this
.
isShowFail
=
false
this
.
handleSearch
()
})
},
handleFailCancel
(){
this
.
isShowFail
=
false
}
}
},
},
}
}
...
@@ -1466,6 +1521,12 @@ export default {
...
@@ -1466,6 +1521,12 @@ export default {
}
}
}
}
}
}
//
.dialog_modal
{
//
height
:
150px
;
//
}
.dialog_title
{
margin-right
:
15px
;
}
.noPaddngTop
{
.noPaddngTop
{
padding-top
:
0
;
padding-top
:
0
;
}
}
...
...
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