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
4cab5802
Commit
4cab5802
authored
Jan 13, 2020
by
linxin
Browse files
Options
Browse Files
Download
Plain Diff
解决冲突
parents
1f3f1125
f449a5e1
Pipeline
#4597
canceled with stages
Changes
7
Pipelines
1
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
2238 additions
and
23 deletions
+2238
-23
currencyInput.vue
src/components/currencyInput.vue
+30
-8
confirm-detail.vue
src/pages/carConfirm/confirm-detail.vue
+9
-1
financing-details.vue
src/pages/financingTrial/financing-details.vue
+2
-2
invoice.vue
src/pages/invoice/invoice.vue
+46
-7
accessory-info.vue
src/pages/userBindNew/np/accessory-info.vue
+15
-1
base-info.vue
src/pages/userBindNew/np/base-info.vue
+9
-4
baseInfo.vue
src/pages/userBindNew/org/baseInfo.vue
+2127
-0
No files found.
src/components/currencyInput.vue
View file @
4cab5802
...
...
@@ -5,7 +5,7 @@
<
template
>
<input
:value=
"formatValue"
:readonly=
"disable"
type=
"text"
@
input=
"onInput($event.target.value)"
@
focus=
"onFocus"
@
blur=
"onBlur
"
>
@
focus=
"onFocus"
@
blur=
"onBlur"
@
click=
"keyboradShow
"
>
</
template
>
<
script
>
...
...
@@ -13,7 +13,7 @@ export default {
name
:
'CurrencyInput'
,
props
:
{
value
:
{
default
:
0
,
default
:
''
,
},
disable
:
{
type
:
Boolean
,
...
...
@@ -28,19 +28,20 @@ export default {
data
()
{
return
{
focused
:
false
,
newVal
:
''
,
}
},
filter
:
{
uncurrency
(
val
)
{
if
(
!
val
)
return
null
return
(
Number
((
val
).
replace
(
/,/gi
,
''
)))
===
0
?
null
:
Number
((
val
).
replace
(
/,/gi
,
''
))
return
(
Number
((
val
).
replace
(
/,/gi
,
''
)))
===
0
?
0
:
Number
((
val
).
replace
(
/,/gi
,
''
))
},
},
computed
:
{
formatValue
()
{
let
currency
=
this
.
$options
.
filters
[
'currency'
]
if
(
!
this
.
focused
)
{
if
(
this
.
value
!==
'
0.00'
&&
this
.
value
!==
'
'
&&
this
.
value
!==
null
)
{
if
(
this
.
value
!==
''
&&
this
.
value
!==
null
)
{
return
`¥
${
currency
(
this
.
value
)}
`
}
}
else
{
...
...
@@ -49,12 +50,33 @@ export default {
},
},
methods
:
{
onInput
:
function
(
value
)
{
keyboradShow
()
{
let
vm
=
this
hlsPopup
.
showNumberKeyborad
({
title
:
'数字键盘'
,
keyDown
:
(
text
)
=>
{
vm
.
onInput
(
text
)
},
keyDelete
:
()
=>
{
vm
.
onDelete
()
},
})
},
onInput
(
value
)
{
if
(
this
.
disable
)
return
let
uncurrency
=
this
.
$options
.
filter
[
'uncurrency'
]
this
.
currencyValue
=
uncurrency
(
value
)
this
.
$emit
(
'input'
,
this
.
currencyValue
)
this
.
newVal
=
this
.
value
this
.
newVal
+=
(
''
+
value
)
this
.
$emit
(
'input'
,
this
.
newVal
)
},
onDelete
()
{
this
.
value
=
''
},
// onInput: function (value) {
// if (this.disable) return
// let uncurrency = this.$options.filter['uncurrency']
// this.currencyValue = uncurrency(value)
// this.$emit('input', this.currencyValue)
// },
onFocus
(
event
)
{
if
(
this
.
disable
)
return
this
.
focused
=
true
...
...
src/pages/carConfirm/confirm-detail.vue
View file @
4cab5802
...
...
@@ -11,7 +11,7 @@
<div
class=
"down-content"
>
<span>
请上传照片
</span>
<div
class=
"photo"
>
<img
:src=
"vehicleImg"
>
<img
:src=
"vehicleImg"
@
click=
"showBigPicture(vehicleImg)"
>
</div>
<list-item
:item-height=
"44"
>
<item>
...
...
@@ -384,6 +384,14 @@ export default {
},
})
},
// 查看大图
showBigPicture
(
pic
)
{
let
vm
=
this
vm
.
hlsPopup
.
showBigPicture
({
imgUrl
:
pic
,
width
:
'100%'
,
})
},
// 打开相机自拍
takePhontoOpenCamera
()
{
let
vm
=
this
...
...
src/pages/financingTrial/financing-details.vue
View file @
4cab5802
...
...
@@ -59,10 +59,10 @@
</item>
<item>
<div
slot=
"name"
class=
"font-color"
>
保险押金
</div>
<CurrencyInput
slot=
"content"
v-model=
"insurance_fee"
placeholder=
"请输入保险押金"
/></
currencyinput></
item>
<CurrencyInput
slot=
"content"
v-model=
"insurance_fee"
placeholder=
"请输入保险押金"
/></item>
<item>
<div
slot=
"name"
class=
"font-color"
>
GPS费用
</div>
<CurrencyInput
slot=
"content"
v-model=
"gps_fee"
placeholder=
"请输入GPS费用"
/></
currencyinput></
item>
<CurrencyInput
slot=
"content"
v-model=
"gps_fee"
placeholder=
"请输入GPS费用"
/></item>
<item>
<div
slot=
"name"
class=
"font-color"
>
首次付款合计
</div>
<span
v-if=
"!equip_price"
slot=
"content"
class=
"autoColor"
>
首次付款合计金额自动填充
</span>
...
...
src/pages/invoice/invoice.vue
View file @
4cab5802
...
...
@@ -12,11 +12,11 @@
</h-header>
<scroll
ref=
"scroll"
:updateData=
"[invoiceList]"
:pullUp=
"true"
@
pullingUp=
"loadMore"
>
<section
class=
"invoice-wrap"
>
<list-item
v-for=
"(list,index) in
[0,1,2]
"
:key=
"index"
>
<list-item
v-for=
"(list,index) in
invoiceList
"
:key=
"index"
>
<div
class=
"invoice-number"
>
<img
src=
"@/assets/invoice/myInvoice.png"
>
<div
class=
"invoice-number-content"
>
<span
class=
"number-left"
>
发票号码
23456
</span>
<span
class=
"number-left"
>
发票号码
{{
list
.
invoice_no
}}
</span>
<div
class=
"number-right"
>
<img
src=
"@/assets/invoice/download.png"
>
<span
class=
"invoice-download"
>
发票下载
</span>
...
...
@@ -26,15 +26,15 @@
<div
class=
"invoice-content"
>
<div
class=
"invoice-content-item"
>
<span
class=
"item-text"
>
开票金额
</span>
<span
class=
"item-value"
>
120090000
</span>
<span
class=
"item-value"
>
{{
list
.
amount
}}
</span>
</div>
<div
class=
"invoice-content-item"
>
<span
class=
"item-text"
>
开票日期
</span>
<span
class=
"item-value"
>
2019-12-24
</span>
<span
class=
"item-value"
>
{{
list
.
invoicedate
}}
</span>
</div>
<div
class=
"invoice-content-item"
>
<span
class=
"item-text"
>
发票代码
</span>
<span
class=
"item-value"
>
14354
</span>
<span
class=
"item-value"
>
{{
list
.
equip_model
}}
</span>
</div>
</div>
</list-item>
...
...
@@ -62,10 +62,37 @@ export default {
},
methods
:
{
loadMore
()
{
this
.
getList
()
},
getList
()
{
let
vm
=
this
let
url
=
process
.
env
.
basePath
+
'user_invoice_query'
let
param
=
{
bp_id
:
window
.
localStorage
.
bp_id
,
}
vm
.
hlsPopup
.
showLoading
(
'请稍后!'
)
vm
.
hlsHttp
.
post
(
url
,
param
).
then
(
function
(
res
)
{
vm
.
hlsPopup
.
hideLoading
()
if
(
res
.
result
===
'S'
)
{
let
returnData
=
[]
returnData
=
res
.
lists
if
(
returnData
.
length
===
0
)
{
vm
.
$refs
.
scroll
.
update
(
true
)
}
else
if
(
returnData
.
length
>
0
&&
returnData
.
length
<
10
)
{
vum
.
forEach
(
returnData
,
function
(
data
,
index
,
array
)
{
vm
.
invoiceList
.
push
(
array
[
index
])
})
vm
.
$refs
.
scroll
.
update
(
true
)
}
else
if
(
returnData
.
length
===
10
)
{
vum
.
forEach
(
returnData
,
function
(
data
,
index
,
array
)
{
vm
.
invoiceList
.
push
(
array
[
index
])
})
vm
.
$refs
.
scroll
.
update
(
false
)
}
}
else
{
vm
.
hlsPopup
.
showLongCenter
(
res
.
info
.
msg
)
}
})
},
},
}
...
...
@@ -151,6 +178,18 @@ export default {
}
}
}
.content {
position: absolute;
top: 0;
}
.scrollContent {
padding-top: 0.8rem;
padding-bottom: 20px;
}
.tab-style {
width: 100%;
position: absolute;
}
}
.platform-ios {
#invoice {
...
...
src/pages/userBindNew/np/accessory-info.vue
View file @
4cab5802
...
...
@@ -334,7 +334,7 @@ export default {
},
beforeRouteEnter
(
to
,
from
,
next
)
{
next
(
vm
=>
{
if
(
from
.
name
===
'NPInvoiceInfo'
&&
window
.
localStorage
.
from
)
{
if
(
from
.
name
===
'NPInvoiceInfo'
&&
window
.
localStorage
.
from
===
'true'
)
{
vm
.
propertyInfo
=
{
bp_id
:
window
.
localStorage
.
getItem
(
'bp_id'
)}
vm
.
hauseInfo
=
{
bp_id
:
window
.
localStorage
.
getItem
(
'bp_id'
)}
vm
.
carInfo
=
{
bp_id
:
window
.
localStorage
.
getItem
(
'bp_id'
)}
...
...
@@ -354,6 +354,20 @@ export default {
vm
.
getHouseInfo
()
vm
.
getEstateInfo
()
},
0
)
}
else
if
(
from
.
name
===
'NPInvoiceInfo'
&&
window
.
localStorage
.
from
===
'false'
)
{
vm
.
propertyInfo
=
{
bp_id
:
window
.
localStorage
.
getItem
(
'bp_id'
)}
vm
.
hauseInfo
=
{
bp_id
:
window
.
localStorage
.
getItem
(
'bp_id'
)}
vm
.
carInfo
=
{
bp_id
:
window
.
localStorage
.
getItem
(
'bp_id'
)}
vm
.
houseImg
=
''
vm
.
carImg
=
''
vm
.
estateImg
=
''
vm
.
houseFlag
=
false
,
// 房产证查看标识,为false则用查询出来的,为true则用拍照出来的
vm
.
carFlag
=
false
,
// 行驶证查看标识,为false则用查询出来的,为true则用拍照出来的
vm
.
estateFlag
=
false
,
// 不动产权证查看标识,为false则用查询出来的,为true则用拍照出来的
vm
.
isUploadHouse
=
false
,
// 房产证修改标识
vm
.
isUploadCar
=
false
,
// 行驶证修改标识
vm
.
isUploadEstate
=
false
,
// 不动产权证修改标识
vm
.
bp_type
=
window
.
localStorage
.
bp_type
}
})
},
...
...
src/pages/userBindNew/np/base-info.vue
View file @
4cab5802
...
...
@@ -441,13 +441,16 @@ export default {
this
.
getEducationBackground
()
this
.
getMarital
()
this
.
getProvince
()
if
(
this
.
$route
.
params
.
status
===
'APPROVED'
)
{
this
.
isApproved
=
true
}
},
beforeRouteEnter
(
to
,
from
,
next
)
{
// 绑定查询入口
next
(
vm
=>
{
if
(
vm
.
$route
.
params
.
status
===
'APPROVED'
)
{
vm
.
isApproved
=
true
}
else
{
vm
.
isApproved
=
false
}
vm
.
isMultiRole
=
vm
.
$route
.
params
.
isMultiRole
if
(
from
.
fullPath
===
'/tab/my-info'
)
{
vm
.
list
=
{}
vm
.
multiBpType
=
{}
...
...
@@ -478,11 +481,14 @@ export default {
vm
.
idCardBackSpEditFlag
=
false
// 配偶身份证反面修改标识,为true则标识已修改,后续需要重新上传此照片
vm
.
isClear
=
false
vm
.
from
=
true
window
.
localStorage
.
setItem
(
'from'
,
true
)
vm
.
basicInfoQuery
()
vm
.
loadItemList
()
// 附件查询
vm
.
checkHasmultiple
()
// 查询是否有新角色
}
else
if
(
from
.
name
===
'UserBind'
)
{
vm
.
list
=
{}
window
.
localStorage
.
setItem
(
'from'
,
false
)
vm
.
from
=
false
vm
.
multiBpType
=
{
bp_type_n
:
''
,
bp_type
:
''
,
...
...
@@ -845,7 +851,6 @@ export default {
window
.
localStorage
.
setItem
(
'bp_id'
,
res
.
bp_id
)
window
.
localStorage
.
setItem
(
'bp_name'
,
vm
.
baseInfo
.
bp_name
)
window
.
localStorage
.
setItem
(
'bp_type'
,
vm
.
baseInfo
.
bp_type
)
window
.
localStorage
.
setItem
(
'from'
,
vm
.
from
)
// vm.bindCheck()
vm
.
$router
.
push
({
name
:
'NPInvoiceInfo'
,
...
...
src/pages/userBindNew/org/baseInfo.vue
0 → 100644
View file @
4cab5802
This diff is collapsed.
Click to expand it.
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