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 d1135706
authored
Jun 28, 2022
by
前端
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'master' into 'develop'
Master ----> develop See merge request
!9
2 parents
adde4322
1617d85a
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
118 additions
and
37 deletions
src/setup/qiankun.js
src/views/beforeSale/editEquity.vue
src/views/expert/components/selectMember.vue
src/views/expert/components/welcomeWords.vue
src/views/expert/detail.vue
src/views/ghPreSale/editEquity.vue
src/setup/qiankun.js
View file @
d113570
...
@@ -17,8 +17,10 @@ Vue.use(ElementUI)
...
@@ -17,8 +17,10 @@ Vue.use(ElementUI)
export
async
function
bootstrap
({
history
,
common
,
messenger
,
globalState
,
routerBase
})
{
export
async
function
bootstrap
({
history
,
common
,
messenger
,
globalState
,
routerBase
})
{
const
{
response
,
request
,
request_brand
,
request_common
,
request_merchant
,
sign_common
,
sign
,
secret
}
=
await
fetchConfig
()
const
{
response
,
request
,
request_brand
,
request_common
,
request_merchant
,
sign_common
,
sign
,
secret
}
=
await
fetchConfig
()
// 本地切换域名,不需要Mock上面改动 const => let
// 本地切换域名,不需要Mock上面改动 const => let
// request.baseURL = 'https://scrm.dev.glsx.com.cn'
// request.baseURL = 'https://scrm.test.glsx.com.cn'
// request_brand.baseURL = 'https://scrm.dev.glsx.com.cn'
// request_brand.baseURL = 'https://scrm.test.glsx.com.cn'
// request_common.baseURL = 'https://scrm.test.glsx.com.cn'
// request_merchant.baseURL = 'https://rop-merchant.test.glsx.com.cn'
// request.baseURL = 'http://192.168.1.78:8064'
// request.baseURL = 'http://192.168.1.78:8064'
// request_brand.baseURL = 'http://192.168.1.78:8064'
// request_brand.baseURL = 'http://192.168.1.78:8064'
Vue
.
prototype
.
$history
=
history
Vue
.
prototype
.
$history
=
history
...
...
src/views/beforeSale/editEquity.vue
View file @
d113570
...
@@ -228,7 +228,10 @@ export default {
...
@@ -228,7 +228,10 @@ export default {
size
:
'small'
,
size
:
'small'
,
submit
:
false
,
submit
:
false
,
isBlock
:
true
,
isBlock
:
true
,
serviceObj
:
{
PC0005
:
''
,
PC0007
:
''
},
footerLeft
:
'0'
,
footerLeft
:
'0'
,
footerWidth
:
'0'
,
footerWidth
:
'0'
,
editCarChildRef
:
'editChildRef'
,
editCarChildRef
:
'editChildRef'
,
...
@@ -389,13 +392,15 @@ export default {
...
@@ -389,13 +392,15 @@ export default {
{
{
required
:
true
,
required
:
true
,
validator
:
(
rule
,
value
,
callback
)
=>
{
validator
:
(
rule
,
value
,
callback
)
=>
{
return
value
?
callback
()
:
callback
(
new
Error
(
'请输入
'
+
(
this
.
editForm
.
cardType
==
'1'
?
'身份证'
:
'统一社会信息代码'
)
))
return
value
?
callback
()
:
callback
(
new
Error
(
'请输入
证件号码'
))
},
},
trigger
:
'change'
trigger
:
'change'
},
},
{
{
validator
:
(
rule
,
value
,
callback
)
=>
{
validator
:
(
rule
,
value
,
callback
)
=>
{
return
/
[
a-zA-Z0-9
]{18}
/
.
test
(
value
)
?
callback
()
:
callback
(
new
Error
(
'请输入18位数字或字母'
))
let
reg
=
this
.
editForm
.
cardType
==
1
||
this
.
editForm
.
cardType
==
2
?
/
[
a-zA-Z0-9
]{18}
/
.
test
(
value
)
:
/
\S\s{0,18}
/
.
test
(
value
)
let
tip
=
this
.
editForm
.
cardType
==
1
||
this
.
editForm
.
cardType
==
2
?
'请输入18位数字或字母'
:
'请输入证件号码'
return
reg
?
callback
()
:
callback
(
new
Error
(
tip
))
},
},
trigger
:
'change'
trigger
:
'change'
}
}
...
@@ -426,6 +431,7 @@ export default {
...
@@ -426,6 +431,7 @@ export default {
this
.
editForm
.
cardType
=
value
this
.
editForm
.
cardType
=
value
var
idx
=
this
.
editFormDataUser
.
findIndex
(
item
=>
item
.
name
==
'cardNo'
)
var
idx
=
this
.
editFormDataUser
.
findIndex
(
item
=>
item
.
name
==
'cardNo'
)
this
.
editFormDataUser
[
idx
].
label
=
this
.
baseData
.
cardTypeList
.
find
(
item
=>
item
.
confId
==
value
).
confName
this
.
editFormDataUser
[
idx
].
label
=
this
.
baseData
.
cardTypeList
.
find
(
item
=>
item
.
confId
==
value
).
confName
this
.
$refs
.
editFormRefUser
.
$refs
.
editChildRefUser
.
validateField
(
'cardNo'
)
}
}
},
},
{
{
...
@@ -607,6 +613,10 @@ export default {
...
@@ -607,6 +613,10 @@ export default {
{
{
confId
:
5
,
confId
:
5
,
confName
:
'个人(军官)'
confName
:
'个人(军官)'
},
{
confId
:
7
,
confName
:
'外国人'
}
}
],
],
cardTypeList
:
[
cardTypeList
:
[
...
@@ -629,6 +639,10 @@ export default {
...
@@ -629,6 +639,10 @@ export default {
{
{
confId
:
5
,
confId
:
5
,
confName
:
'军官证'
confName
:
'军官证'
},
{
confId
:
7
,
confName
:
'护照'
}
}
],
],
servicePeriodList
:
[
servicePeriodList
:
[
...
@@ -768,14 +782,55 @@ export default {
...
@@ -768,14 +782,55 @@ export default {
// 卡号获取期限
// 卡号获取期限
getDateList
(
seqNo
,
pack
,
attr
)
{
getDateList
(
seqNo
,
pack
,
attr
)
{
this
.
$apis
.
beforeSale
.
dateBycarNo
({
seqNo
}).
then
(
res
=>
{
this
.
$apis
.
beforeSale
.
dateBycarNo
({
seqNo
}).
then
(
res
=>
{
this
.
productModal
[
pack
.
idName
][
'service_period'
]
=
`
${
res
.
servicePeriod
}
`
if
(
res
!=
null
)
{
pack
.
groupAttributeList
.
map
(
el
=>
{
let
tip
=
false
if
(
el
.
attributeName
==
'service_period'
)
{
if
(
pack
.
packageCode
==
'PC0007'
||
pack
.
packageCode
==
'PC0005'
)
{
this
.
commonPart
(
res
.
servicePeriod
,
pack
,
el
)
this
.
productList
.
map
(
el
=>
{
el
.
disabled
=
true
if
(
el
.
packageCode
==
pack
.
packageCode
)
{
return
el
el
.
groupAttributeList
.
map
(
ele
=>
{
ele
.
attributeList
.
map
(
item
=>
{
if
(
item
.
attributeDesc
==
'服务期限'
)
{
// if (item?.optionList?.length < 4) {
// item.optionList.push({ value: '4', label: '4年' })
// item.optionList.push({ value: '5', label: '5年' })
// } else if (item?.optionList?.length == 4) {
// item.optionList.push({ value: '5', label: '5年' })
// }
let
optionObj
=
{
'4'
:
{
value
:
'4'
,
label
:
'4年'
},
'5'
:
{
value
:
'5'
,
label
:
'5年'
}
}
if
(
res
.
servicePeriod
==
'4'
||
res
.
servicePeriod
==
'5'
)
{
const
Target
=
item
.
optionList
.
find
(
item
=>
{
return
item
.
value
==
`
${
res
.
servicePeriod
}
`
})
if
(
this
.
serviceObj
[
el
.
packageCode
].
indexOf
(
res
.
servicePeriod
)
==
-
1
)
{
tip
=
true
}
if
(
!
Target
)
{
item
.
optionList
.
push
(
optionObj
[
res
.
servicePeriod
+
''
])
}
}
}
})
})
}
})
}
}
})
if
(
tip
)
{
this
.
productModal
[
pack
.
idName
][
'service_period'
]
=
''
this
.
$message
.
error
(
'该卡号服务年限暂未配置,请联系运营平台人员'
)
}
else
{
this
.
productModal
[
pack
.
idName
][
'service_period'
]
=
`
${
res
.
servicePeriod
}
`
}
pack
.
groupAttributeList
.
map
(
el
=>
{
if
(
el
.
attributeName
==
'service_period'
)
{
this
.
commonPart
(
res
.
servicePeriod
,
pack
,
el
)
el
.
disabled
=
true
return
el
}
})
}
})
})
},
},
// 切换套餐---赋默认值
// 切换套餐---赋默认值
...
@@ -1046,13 +1101,27 @@ export default {
...
@@ -1046,13 +1101,27 @@ export default {
item
.
groupAttributeList
.
map
(
ele
=>
{
item
.
groupAttributeList
.
map
(
ele
=>
{
ele
.
attributeList
.
map
(
e
=>
{
ele
.
attributeList
.
map
(
e
=>
{
if
((
item
.
idName
==
'stolen'
||
item
.
idName
==
'car'
)
&&
e
.
attributeDesc
==
'服务期限'
)
{
if
((
item
.
idName
==
'stolen'
||
item
.
idName
==
'car'
)
&&
e
.
attributeDesc
==
'服务期限'
)
{
e
.
optionList
=
this
.
baseData
.
servicePeriodList
let
serviceArr1
=
{
value
:
'4'
,
label
:
'4年'
}
let
serviceArr2
=
{
value
:
'5'
,
label
:
'5年'
}
let
arr
=
[...
this
.
baseData
.
servicePeriodList
]
if
(
item
.
servicePeriod
&&
item
.
servicePeriod
.
indexOf
(
'4'
)
>
-
1
)
{
arr
.
push
(
serviceArr1
)
}
if
(
item
.
servicePeriod
&&
item
.
servicePeriod
.
indexOf
(
'5'
)
>
-
1
)
{
arr
.
push
(
serviceArr2
)
}
e
.
optionList
=
[...
arr
]
this
.
serviceObj
[
item
.
packageCode
]
=
item
.
servicePeriod
this
.
productModal
[
item
.
idName
][
e
.
attributeName
]
=
'1'
this
.
productModal
[
item
.
idName
][
e
.
attributeName
]
=
'1'
}
else
if
(
e
.
attributeDesc
==
'购车类型'
)
{
}
else
if
(
e
.
attributeDesc
==
'购车类型'
)
{
e
.
optionList
=
this
.
baseData
.
buyCarTypeList
e
.
optionList
=
this
.
baseData
.
buyCarTypeList
this
.
productModal
[
item
.
idName
][
e
.
attributeName
]
=
'0'
this
.
productModal
[
item
.
idName
][
e
.
attributeName
]
=
'0'
}
else
if
((
item
.
idName
==
'tire'
||
item
.
idName
==
'crash'
||
item
.
idName
==
'vip'
)
&&
e
.
attributeDesc
==
'服务期限'
)
{
}
else
if
((
item
.
idName
==
'tire'
||
item
.
idName
==
'crash'
||
item
.
idName
==
'vip'
)
&&
e
.
attributeDesc
==
'服务期限'
)
{
e
.
optionList
=
this
.
baseData
.
servicePeriodList2
if
(
item
.
idName
==
'tire'
||
item
.
idName
==
'crash'
)
{
e
.
optionList
=
this
.
baseData
.
servicePeriodList
}
else
{
e
.
optionList
=
this
.
baseData
.
servicePeriodList2
}
this
.
productModal
[
item
.
idName
][
e
.
attributeName
]
=
'1'
this
.
productModal
[
item
.
idName
][
e
.
attributeName
]
=
'1'
e
.
disabled
=
true
e
.
disabled
=
true
}
else
if
(
e
.
attributeDesc
==
'生效日期'
)
{
}
else
if
(
e
.
attributeDesc
==
'生效日期'
)
{
...
...
src/views/expert/components/selectMember.vue
View file @
d113570
...
@@ -26,7 +26,7 @@
...
@@ -26,7 +26,7 @@
<div
class=
"table-content"
style=
"max-height: 456px;"
>
<div
class=
"table-content"
style=
"max-height: 456px;"
>
<GLTable
v-loading=
"loading"
ref=
"empTable"
:tableData=
"tableEmpData"
:tableParams=
"tableParams"
:hasNum=
"false"
:hasPage=
"false"
:noDataImg=
"url"
@
row-click=
"rowClick"
>
<GLTable
v-loading=
"loading"
ref=
"empTable"
:tableData=
"tableEmpData"
:tableParams=
"tableParams"
:hasNum=
"false"
:hasPage=
"false"
:noDataImg=
"url"
@
row-click=
"rowClick"
>
<div
slot=
"radio"
slot-scope=
"scope"
>
<div
slot=
"radio"
slot-scope=
"scope"
>
<el-radio
:disabled=
"scope.scope.isOperationConfig == 0"
v-model=
"selectPerson"
:label=
"scope.scope"
>
</el-radio>
<el-radio
v-model=
"selectPerson"
:label=
"scope.scope"
>
</el-radio>
</div>
</div>
<div
slot=
"staffName"
slot-scope=
"scope"
>
<div
slot=
"staffName"
slot-scope=
"scope"
>
<span>
{{
scope
.
scope
.
staffName
}}
</span>
<span>
{{
scope
.
scope
.
staffName
}}
</span>
...
@@ -124,7 +124,6 @@ export default {
...
@@ -124,7 +124,6 @@ export default {
},
},
methods
:
{
methods
:
{
selectionTable
(
val
)
{
selectionTable
(
val
)
{
console
.
log
(
456
)
this
.
innerTags
=
val
this
.
innerTags
=
val
// this.$emit('selectTable', val)
// this.$emit('selectTable', val)
},
},
...
@@ -144,7 +143,7 @@ export default {
...
@@ -144,7 +143,7 @@ export default {
listDepartmentTree
(
isFollowerStaff
)
{
listDepartmentTree
(
isFollowerStaff
)
{
const
params
=
{
addChildrensFlag
:
true
}
const
params
=
{
addChildrensFlag
:
true
}
this
.
loading
=
true
this
.
loading
=
true
params
.
isHavCustomer
=
tru
e
params
.
isHavCustomer
=
fals
e
params
.
isFollowerStaff
=
isFollowerStaff
params
.
isFollowerStaff
=
isFollowerStaff
this
.
$apis
.
customerTransform
.
listDepartmentTree
(
params
).
then
(
res
=>
{
this
.
$apis
.
customerTransform
.
listDepartmentTree
(
params
).
then
(
res
=>
{
console
.
log
(
res
)
console
.
log
(
res
)
...
@@ -245,7 +244,6 @@ export default {
...
@@ -245,7 +244,6 @@ export default {
},
},
rowClick
(
row
)
{
rowClick
(
row
)
{
// this.$refs.empTable.$refs.salelistMutiTable.toggleRowSelection(row)
// this.$refs.empTable.$refs.salelistMutiTable.toggleRowSelection(row)
if
(
row
.
isOperationConfig
===
0
)
return
this
.
selectPerson
=
row
this
.
selectPerson
=
row
},
},
checkChange
(
val
)
{
checkChange
(
val
)
{
...
...
src/views/expert/components/welcomeWords.vue
View file @
d113570
...
@@ -171,6 +171,7 @@ export default {
...
@@ -171,6 +171,7 @@ export default {
})
})
},
},
setTextarea
(
val
)
{
setTextarea
(
val
)
{
if
(
val
==
'\n'
)
return
// let val = '[鄙视]@昵称@昵称[鄙视][做哼][ ]车主朋友,您好!我是您的福利官,欢迎您领取电子质保卡,请点击下方链接进行领取及查看:https://dj.glsx.com.cn/dj-car-boutique-work-wechat/#/祝您用车愉快!'
// let val = '[鄙视]@昵称@昵称[鄙视][做哼][ ]车主朋友,您好!我是您的福利官,欢迎您领取电子质保卡,请点击下方链接进行领取及查看:https://dj.glsx.com.cn/dj-car-boutique-work-wechat/#/祝您用车愉快!'
let
reg1
=
/
\[(
.+
?)\]
/gi
let
reg1
=
/
\[(
.+
?)\]
/gi
let
arr
=
val
.
match
(
reg1
)
||
[]
let
arr
=
val
.
match
(
reg1
)
||
[]
...
@@ -188,7 +189,7 @@ export default {
...
@@ -188,7 +189,7 @@ export default {
val
=
val
.
replaceAll
(
item
,
img
)
val
=
val
.
replaceAll
(
item
,
img
)
}
}
})
})
val
=
val
.
replaceAll
(
'
@昵称
'
,
'<wise>@昵称</wise>'
)
val
=
val
.
replaceAll
(
'
[@昵称]
'
,
'<wise>@昵称</wise>'
)
let
welcomeStr
=
'车主朋友,您好!我是您的福利官,欢迎您领取电子质保卡,请点击下方链接进行领取及查看:https://dj.glsx.com.cn/dj-car-boutique-work-wechat/#/祝您用车愉快!'
let
welcomeStr
=
'车主朋友,您好!我是您的福利官,欢迎您领取电子质保卡,请点击下方链接进行领取及查看:https://dj.glsx.com.cn/dj-car-boutique-work-wechat/#/祝您用车愉快!'
let
text
=
'<br>车主朋友,您好!<br>我是您的福利官,欢迎您领取电子质保卡,<br>请点击下方链接进行领取及查看:<br><span style="color:#409eff;">https://dj.glsx.com.cn/dj-car-boutique-work-wechat/#/</span><br>祝您用车愉快!<br>'
let
text
=
'<br>车主朋友,您好!<br>我是您的福利官,欢迎您领取电子质保卡,<br>请点击下方链接进行领取及查看:<br><span style="color:#409eff;">https://dj.glsx.com.cn/dj-car-boutique-work-wechat/#/</span><br>祝您用车愉快!<br>'
val
=
val
.
replaceAll
(
welcomeStr
,
text
)
val
=
val
.
replaceAll
(
welcomeStr
,
text
)
...
...
src/views/expert/detail.vue
View file @
d113570
...
@@ -181,18 +181,20 @@ export default {
...
@@ -181,18 +181,20 @@ export default {
}
}
let
preList
=
[...
this
.
$refs
.
welcome
.
previewList
]
let
preList
=
[...
this
.
$refs
.
welcome
.
previewList
]
preList
.
forEach
(
item
=>
{
preList
.
forEach
(
item
=>
{
if
(
item
.
attType
==
1
&&
!
item
.
attContent
.
trim
())
{
if
(
item
.
attType
==
1
&&
!
item
.
attContent
.
trim
())
{
item
.
attContent
=
'\n'
item
.
attContent
=
'\n'
}
else
if
(
item
.
attType
==
1
)
{
item
.
attContent
=
item
.
attContent
.
replaceAll
(
'@昵称'
,
'[@昵称]'
)
}
}
if
(
item
.
attType
==
7
)
{
if
(
item
.
attType
==
7
)
{
item
.
attContent
=
JSON
.
stringify
(
item
.
attContent
)
item
.
attContent
=
JSON
.
stringify
(
item
.
attContent
)
}
}
})
})
const
typeItem
=
preList
.
find
(
item
=>
{
const
typeItem
=
preList
.
find
(
item
=>
{
return
item
.
attType
==
1
return
item
.
attType
==
1
})
})
if
(
!
typeItem
)
{
if
(
!
typeItem
)
{
preList
.
unshift
({
attType
:
'1'
,
attContent
:
'\n'
})
preList
.
unshift
({
attType
:
'1'
,
attContent
:
'\n'
})
}
}
const
targetItem
=
this
.
numberTypeList
.
find
(
item
=>
{
const
targetItem
=
this
.
numberTypeList
.
find
(
item
=>
{
return
item
.
dictLabel
==
this
.
clientType
return
item
.
dictLabel
==
this
.
clientType
...
@@ -313,8 +315,8 @@ export default {
...
@@ -313,8 +315,8 @@ export default {
}
}
.form
{
.form
{
/deep/.el-form-item
{
/deep/.el-form-item
{
&:nth-child(-n
+2)
{
&:nth-child(-n
+
2)
{
height
:
36px
;
height
:
36px
;
}
}
//
height
:
36px
;
//
height
:
36px
;
line-height
:
36px
;
line-height
:
36px
;
...
...
src/views/ghPreSale/editEquity.vue
View file @
d113570
...
@@ -85,8 +85,8 @@
...
@@ -85,8 +85,8 @@
<!-- <div class="footer" :style="{ left: footerLeft + 'px', width: footerWidth + 'px' }"> -->
<!-- <div class="footer" :style="{ left: footerLeft + 'px', width: footerWidth + 'px' }"> -->
<div
class=
"footer operate-btn"
>
<div
class=
"footer operate-btn"
>
<el-button
size=
"small"
class=
"reset-btn"
v-show=
"routeInfo.addOrEdit == '1'"
@
click=
"handleReset"
>
重置
</el-button>
<el-button
size=
"small"
class=
"reset-btn"
v-show=
"routeInfo.addOrEdit == '1'"
@
click=
"handleReset"
>
重置
</el-button>
<el-button
size=
"small"
v-show=
"!['3', '5'].includes(routeInfo.addOrEdit)"
class=
"plain"
@
click=
"handleDraft"
>
草稿
</el-button>
<el-button
size=
"small"
v-show=
"!['3', '5'].includes(routeInfo.addOrEdit)"
class=
"plain"
@
click=
"handleDraft
(2)
"
>
草稿
</el-button>
<el-button
size=
"small"
v-show=
"routeInfo.addOrEdit != '5'"
type=
"primary"
@
click=
"handleConfirm"
>
{{ routeInfo.addOrEdit != '3' ? '提单' : '确定' }}
</el-button>
<el-button
size=
"small"
v-show=
"routeInfo.addOrEdit != '5'"
type=
"primary"
@
click=
"handleConfirm
(1)
"
>
{{ routeInfo.addOrEdit != '3' ? '提单' : '确定' }}
</el-button>
<el-button
v-if=
"routeInfo.addOrEdit != 5"
size=
"small"
@
click=
"handleCancel"
>
返回
</el-button>
<el-button
v-if=
"routeInfo.addOrEdit != 5"
size=
"small"
@
click=
"handleCancel"
>
返回
</el-button>
<el-button
v-else
size=
"small"
type=
"primary"
@
click=
"handleCancel"
>
返回
</el-button>
<el-button
v-else
size=
"small"
type=
"primary"
@
click=
"handleCancel"
>
返回
</el-button>
</div>
</div>
...
@@ -598,6 +598,9 @@ export default {
...
@@ -598,6 +598,9 @@ export default {
if
(
!
this
.
routeInfo
.
isSuper
)
{
if
(
!
this
.
routeInfo
.
isSuper
)
{
this
.
successDisable
=
this
.
routeInfo
.
addOrEdit
==
'3'
this
.
successDisable
=
this
.
routeInfo
.
addOrEdit
==
'3'
}
}
if
(
!
this
.
routeInfo
.
isSuper
||
this
.
routeInfo
.
addOrEdit
==
1
){
this
.
$set
(
this
.
editRuleOther
,
'actualSalesPersonId'
,{
required
:
true
,
message
:
'请输入实际销售人'
,
trigger
:
'change'
})
}
this
.
getOptionsList
(
'editFormDataCar'
,
false
)
this
.
getOptionsList
(
'editFormDataCar'
,
false
)
this
.
getOptionsList
(
'editFormDataUser'
,
false
)
this
.
getOptionsList
(
'editFormDataUser'
,
false
)
this
.
getOptionsList
(
'editFormDataOther'
,
false
)
this
.
getOptionsList
(
'editFormDataOther'
,
false
)
...
@@ -1009,7 +1012,7 @@ export default {
...
@@ -1009,7 +1012,7 @@ export default {
}
}
return
params
return
params
},
},
handleDraft
()
{
handleDraft
(
commitType
)
{
if
(
this
.
submit
)
{
if
(
this
.
submit
)
{
return
true
return
true
}
}
...
@@ -1026,18 +1029,24 @@ export default {
...
@@ -1026,18 +1029,24 @@ export default {
}
else
{
}
else
{
params
.
contractNo
=
''
params
.
contractNo
=
''
}
}
this
.
updateEquity
(
params
)
this
.
updateEquity
(
params
,
commitType
)
},
},
updateEquity
(
params
)
{
updateEquity
(
params
,
commitType
)
{
let
text
=
''
,
time
=
0
;
if
(
commitType
==
1
){
text
=
'订单待审核中,请等待1-2分钟后刷新页面。若一直待审核,请主动联系erp项目组。'
time
=
5000
}
else
{
text
=
'正在Loding...'
}
const
loading
=
this
.
$loading
({
const
loading
=
this
.
$loading
({
lock
:
true
,
lock
:
true
,
text
:
'订单待审核中,请等待1-2分钟后刷新页面。若一直待审核,请主动联系erp项目组。'
,
text
:
text
,
spinner
:
'el-icon-loading'
,
spinner
:
'el-icon-loading'
,
background
:
'rgba(0, 0, 0, 0.5)'
,
background
:
'rgba(0, 0, 0, 0.5)'
,
customClass
:
'loadingClass'
customClass
:
'loadingClass'
})
})
this
.
$apis
.
ghBeforeSale
.
updateEquityApi
(
params
).
then
(
res
=>
{
this
.
$apis
.
ghBeforeSale
.
updateEquityApi
(
params
).
then
(
res
=>
{
this
.
submit
=
false
this
.
submit
=
false
if
(
res
.
errId
==
'A1307'
)
{
if
(
res
.
errId
==
'A1307'
)
{
loading
.
close
()
loading
.
close
()
...
@@ -1054,12 +1063,12 @@ export default {
...
@@ -1054,12 +1063,12 @@ export default {
// name: 'beforeSale',
// name: 'beforeSale',
params
:
res
params
:
res
})
})
},
5000
)
},
time
)
}
}
})
})
},
},
handleConfirm
()
{
handleConfirm
(
commitType
)
{
if
(
this
.
submit
)
{
if
(
this
.
submit
)
{
return
true
return
true
}
}
...
@@ -1095,7 +1104,7 @@ export default {
...
@@ -1095,7 +1104,7 @@ export default {
}
}
this
.
$apis
.
ghBeforeSale
.
checkOrderApi
({
vin
:
this
.
editForm
.
vehicle
.
vin
,
contractNo
:
this
.
routeInfo
.
contractNo
||
''
}).
then
(
res
=>
{
this
.
$apis
.
ghBeforeSale
.
checkOrderApi
({
vin
:
this
.
editForm
.
vehicle
.
vin
,
contractNo
:
this
.
routeInfo
.
contractNo
||
''
}).
then
(
res
=>
{
if
(
res
.
code
==
'0'
)
{
if
(
res
.
code
==
'0'
)
{
this
.
updateEquity
(
params
)
this
.
updateEquity
(
params
,
commitType
)
}
else
{
}
else
{
this
.
submit
=
false
this
.
submit
=
false
this
.
$confirm
(
res
.
message
,
'提示'
,
{
this
.
$confirm
(
res
.
message
,
'提示'
,
{
...
@@ -1105,7 +1114,7 @@ export default {
...
@@ -1105,7 +1114,7 @@ export default {
callback
:
action
=>
{
callback
:
action
=>
{
if
(
action
==
'confirm'
)
{
if
(
action
==
'confirm'
)
{
this
.
submit
=
true
this
.
submit
=
true
this
.
updateEquity
(
params
)
this
.
updateEquity
(
params
,
commitType
)
}
}
}
}
})
})
...
...
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