Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
H
hls-xcmg-vue-app
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
xugong
hls-xcmg-vue-app
Commits
61e173c5
Commit
61e173c5
authored
Dec 26, 2019
by
linxin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add
parent
0f844997
Changes
5
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
191 additions
and
43 deletions
+191
-43
contract-create-list.vue
src/pages/contractCreate/contract-create-list.vue
+9
-0
creat-rent-info.vue
src/pages/contractCreate/creat-rent-info.vue
+27
-2
create-base-info.vue
src/pages/contractCreate/create-base-info.vue
+130
-38
sales-info.vue
src/pages/contractCreate/sales-info.vue
+4
-0
pay-page.vue
src/pages/pay/pay-page.vue
+21
-3
No files found.
src/pages/contractCreate/contract-create-list.vue
View file @
61e173c5
...
@@ -338,11 +338,20 @@ export default {
...
@@ -338,11 +338,20 @@ export default {
this
.
approvedearch
()
this
.
approvedearch
()
}
}
},
},
changePage
()
{
window
.
localStorage
.
setItem
(
'contractReadonly'
,
false
)
window
.
localStorage
.
setItem
(
'formPage'
,
'sale'
)
this
.
$router
.
push
({
name
:
'SalesInfo'
,
})
},
changeBase
()
{
changeBase
()
{
if
(
this
.
num
===
1
)
{
if
(
this
.
num
===
1
)
{
window
.
localStorage
.
setItem
(
'contractReadonly'
,
false
)
window
.
localStorage
.
setItem
(
'contractReadonly'
,
false
)
window
.
localStorage
.
setItem
(
'formPage'
,
'list'
)
}
else
if
(
this
.
num
===
2
)
{
}
else
if
(
this
.
num
===
2
)
{
window
.
localStorage
.
setItem
(
'contractReadonly'
,
true
)
window
.
localStorage
.
setItem
(
'contractReadonly'
,
true
)
window
.
localStorage
.
setItem
(
'formPage'
,
'list'
)
}
}
this
.
$router
.
push
({
this
.
$router
.
push
({
name
:
'CreateBaseInfo'
,
name
:
'CreateBaseInfo'
,
...
...
src/pages/contractCreate/creat-rent-info.vue
View file @
61e173c5
...
@@ -222,8 +222,11 @@ export default {
...
@@ -222,8 +222,11 @@ export default {
showModalValue
:
false
,
showModalValue
:
false
,
showModalBusiness
:
false
,
showModalBusiness
:
false
,
isComputed
:
false
,
isComputed
:
false
,
fromPage
:
window
.
localStorage
.
fromPage
,
keyWordProduct
:
''
,
keyWordProduct
:
''
,
policyKeyWord
:
''
,
policyKeyWord
:
''
,
fromPutted
:
false
,
fromList
:
false
,
// 判断是否从列表过来
pagenum
:
1
,
// 产品型号页码
pagenum
:
1
,
// 产品型号页码
pagenumSearch
:
1
,
// 产品型号查询时的页码
pagenumSearch
:
1
,
// 产品型号查询时的页码
pagenumPolicy
:
1
,
// 商务政策没有查询时的页码
pagenumPolicy
:
1
,
// 商务政策没有查询时的页码
...
@@ -309,14 +312,20 @@ export default {
...
@@ -309,14 +312,20 @@ export default {
vm
.
divisionLists
=
[]
vm
.
divisionLists
=
[]
vm
.
pagenum
=
1
vm
.
pagenum
=
1
vm
.
pagenumPolicy
=
1
vm
.
pagenumPolicy
=
1
if
(
vm
.
fromPage
===
'sale'
)
{
vm
.
fromList
=
false
}
else
if
(
vm
.
status
===
'list'
)
{
vm
.
fromList
=
true
vm
.
rentInfoQuery
()
}
if
(
from
.
name
===
'CreateBaseInfo'
)
{
if
(
from
.
name
===
'CreateBaseInfo'
)
{
vm
.
isComputed
=
false
vm
.
isComputed
=
false
Object
.
keys
(
vm
.
saveInfo
).
forEach
(
i
=>
{
Object
.
keys
(
vm
.
saveInfo
).
forEach
(
i
=>
{
// 置空saveInfo
if
(
i
!==
'project_id'
)
{
if
(
i
!==
'project_id'
)
{
vm
.
saveInfo
[
i
]
=
''
vm
.
saveInfo
[
i
]
=
''
}
}
})
})
Object
.
keys
(
vm
.
productInfo
).
forEach
(
i
=>
{
Object
.
keys
(
vm
.
productInfo
).
forEach
(
i
=>
{
// 置空productInfo
if
(
i
!==
'project_id'
)
{
if
(
i
!==
'project_id'
)
{
vm
.
saveInfo
[
i
]
=
''
vm
.
saveInfo
[
i
]
=
''
}
}
...
@@ -339,6 +348,22 @@ export default {
...
@@ -339,6 +348,22 @@ export default {
changeLeaseCharge
()
{
changeLeaseCharge
()
{
this
.
saveInfo
.
lease_charge_ratio_n
=
`
${(
this
.
saveInfo
.
lease_charge
/
(
this
.
saveInfo
.
equip_price
-
this
.
saveInfo
.
equip_price
*
this
.
saveInfo
.
down_payment_ratio_n
.
replace
(
'%'
,
''
)
/
100
)).
toFixed
(
2
)
*
100
}
%`
this
.
saveInfo
.
lease_charge_ratio_n
=
`
${(
this
.
saveInfo
.
lease_charge
/
(
this
.
saveInfo
.
equip_price
-
this
.
saveInfo
.
equip_price
*
this
.
saveInfo
.
down_payment_ratio_n
.
replace
(
'%'
,
''
)
/
100
)).
toFixed
(
2
)
*
100
}
%`
},
},
rentInfoQuery
()
{
// 租赁信息查询
let
vm
=
this
let
url
=
process
.
env
.
basePath
+
'prj_lease_query'
let
param
=
{
project_id
:
window
.
localStorage
.
project_id
,
}
hlsPopup
.
showLoading
(
'请稍候'
)
vm
.
$post
(
url
,
param
).
then
(
function
(
res
)
{
vm
.
hlsPopup
.
hideLoading
()
if
(
res
.
result
===
'S'
)
{
Object
.
assign
(
vm
.
saveInfo
,
res
.
info
)
}
else
{
hlsPopup
.
showLongCenter
(
res
.
message
)
}
})
},
selectBusinessPolicy
(
e
)
{
selectBusinessPolicy
(
e
)
{
let
vm
=
this
let
vm
=
this
vm
.
saveInfo
.
product_plan_id
=
e
.
product_plan_id
vm
.
saveInfo
.
product_plan_id
=
e
.
product_plan_id
...
...
src/pages/contractCreate/create-base-info.vue
View file @
61e173c5
This diff is collapsed.
Click to expand it.
src/pages/contractCreate/sales-info.vue
View file @
61e173c5
...
@@ -163,6 +163,7 @@ export default {
...
@@ -163,6 +163,7 @@ export default {
factory
:
''
,
// 主机厂id
factory
:
''
,
// 主机厂id
manu_manager
:
''
,
// 办事处业务员
manu_manager
:
''
,
// 办事处业务员
dates
:
'请选择'
,
dates
:
'请选择'
,
project_id
:
window
.
localStorage
.
project_id
,
},
},
}
}
},
},
...
@@ -199,10 +200,13 @@ export default {
...
@@ -199,10 +200,13 @@ export default {
manu_manager
:
''
,
// 办事处业务员
manu_manager
:
''
,
// 办事处业务员
dates
:
'请选择'
,
dates
:
'请选择'
,
bp_type
:
window
.
localStorage
.
bp_type
,
bp_type
:
window
.
localStorage
.
bp_type
,
project_id
:
''
,
}
}
vm
.
businessQuery
()
vm
.
businessQuery
()
vm
.
agentQuery
()
vm
.
agentQuery
()
vm
.
factoryQuery
()
vm
.
factoryQuery
()
}
else
if
(
from
.
name
===
'CreateBaseInfo'
)
{
vm
.
salesInfo
.
project_id
=
window
.
localStorage
.
project_id
}
}
})
})
},
},
...
...
src/pages/pay/pay-page.vue
View file @
61e173c5
...
@@ -213,9 +213,27 @@ export default {
...
@@ -213,9 +213,27 @@ export default {
vm
.
isSuccess
=
false
vm
.
isSuccess
=
false
hlsPopup
.
showLongCenter
(
res
.
error_message
)
hlsPopup
.
showLongCenter
(
res
.
error_message
)
}
else
{
}
else
{
if
(
res
.
status
===
'01'
)
{
vm
.
isSuccess
=
false
vm
.
isFaild
=
false
hlsPopup
.
showLongCenter
(
'可再次提交'
)
}
else
if
(
res
.
status
===
'02'
)
{
vm
.
isSuccess
=
false
vm
.
isFaild
=
false
hlsPopup
.
showLongCenter
(
'正在支付...'
)
}
else
if
(
res
.
status
===
'03'
)
{
vm
.
isSuccess
=
true
vm
.
isSuccess
=
true
vm
.
isFaild
=
false
vm
.
isFaild
=
false
hlsPopup
.
showLongCenter
(
'交易成功'
)
hlsPopup
.
showLongCenter
(
'交易成功'
)
}
else
if
(
res
.
status
===
'04'
)
{
vm
.
isSuccess
=
true
vm
.
isFaild
=
false
hlsPopup
.
showLongCenter
(
'交易完成'
)
}
else
{
vm
.
isSuccess
=
false
vm
.
isFaild
=
true
hlsPopup
.
showLongCenter
(
'交易失败'
)
}
}
}
}
else
{
}
else
{
hlsPopup
.
showLongCenter
(
res
.
message
)
hlsPopup
.
showLongCenter
(
res
.
message
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment