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
a049cad5
Commit
a049cad5
authored
Dec 25, 2019
by
linxin
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'liuxin' into develop
parents
1300154b
fa455a31
Pipeline
#4303
canceled with stages
Changes
6
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
19 additions
and
125 deletions
+19
-125
currencyInput.vue
src/components/currencyInput.vue
+9
-10
add-person.vue
src/pages/contractCreate/add-person.vue
+0
-97
contract-create-list.vue
src/pages/contractCreate/contract-create-list.vue
+2
-14
sales-info.vue
src/pages/contractCreate/sales-info.vue
+7
-2
my-info.vue
src/pages/myInfo/my-info.vue
+1
-0
index.js
src/router/index.js
+0
-2
No files found.
src/components/currencyInput.vue
View file @
a049cad5
...
...
@@ -52,16 +52,15 @@ export default {
onFocus
(
event
)
{
if
(
this
.
disable
)
return
this
.
focused
=
true
// let value = obj.value
// if (document.selection) {
// var sel = obj.createTextRange()
// sel.moveStart('character', value.length)
// sel.collapse()
// sel.select()
// } else if (typeof obj.selectionStart === 'number' && typeof obj.selectionEnd === 'number') {
// obj.selectionStart = obj.selectionEnd = value.length
// }
console
.
log
(
event
)
let
value
=
event
.
target
.
value
if
(
document
.
selection
)
{
var
sel
=
value
.
createTextRange
()
sel
.
moveStart
(
'character'
,
value
.
length
)
sel
.
collapse
()
sel
.
select
()
}
else
if
(
typeof
value
.
selectionStart
===
'number'
&&
typeof
value
.
selectionEnd
===
'number'
)
{
value
.
selectionStart
=
value
.
selectionEnd
=
value
.
length
}
setTimeout
(
function
()
{
event
.
target
.
type
=
'number'
event
.
target
.
focus
()
...
...
src/pages/contractCreate/add-person.vue
deleted
100644 → 0
View file @
1300154b
<
template
>
<h-view
id=
"add-person"
>
<h-header
:proportion=
"[5,1,1]"
class=
"bar-custom"
>
<div
slot=
"left"
class=
"h-header-btn"
>
<img
src=
"@/assets/userBind/arrow.png"
@
click=
"$routeGo()"
>
<span>
添加担保人
</span>
</div>
</h-header>
<h-content>
<div
class=
"search has-header"
>
<input
v-model=
"keyWord"
placeholder=
"请输入担保人名称/证件号码"
>
</div>
<list-item
:item-height=
"68"
class=
"item"
>
<item>
<img
slot=
"left-icon"
src=
"@/assets/contractCreate/name.png"
class=
"left-icon"
>
<div
slot=
"name"
>
担保人名称
<br>
证件号
</div>
<div
slot=
"content"
>
<input
placeholder=
"暂无信息"
readonly
>
<input
placeholder=
"暂无信息"
readonly
>
</div>
</item>
</list-item>
</h-content>
</h-view>
</
template
>
<
script
>
export
default
{
data
()
{
return
{
keyWord
:
''
,
}
},
}
</
script
>
<
style
lang=
"less"
scoped
>
#add-person{
.item{
width:359px;
margin:0 auto;
}
.search {
background-color: #fff;
padding: 8px 12px;
width: 100%;
height: 1.02rem;
z-index: 100;
margin-bottom: 8px;
input {
background: url("../../assets/contractStart/search1.png") 320px no-repeat;
background-size: 16px 16px;
background-color: rgba(239, 239, 239, 0.55);
padding-left: 12px;
height:36px;
line-height: 36px;
border-radius: 4px;
width: 100%;
font-family: PingFangSC-Regular;
font-size: 14px;
color: #888c8f;
}
input::placeholder {
font-family: PingFangSC-Regular;
font-size: 14px;
color: #888c8f;
letter-spacing: 0;
}
input:focus {
background: url("../../assets/contractStart/search2.png") 320px no-repeat;
background-size: 16px 16px;
background-color: rgba(239, 239, 239, 0.55);
border: 2px solid #bcc6ff;
}
}
}
@media (device-width: 414px) and (device-height: 896px) {
.platform-ios {
#add-person {
.search {
input {
background: url("../../assets/contractStart/search1.png") 320px
no-repeat;
background-size: 16px 16px;
background-color: rgba(239, 239, 239, 0.55);
padding: 8px 12px;
border-radius: 4px;
width: 100%;
font-family: PingFangSC-Regular;
font-size: 14px;
color: #888c8f;
}
}
}
}
}
</
style
>
src/pages/contractCreate/contract-create-list.vue
View file @
a049cad5
...
...
@@ -122,20 +122,8 @@ export default {
})
},
changePage
()
{
let
vm
=
this
let
url
=
process
.
env
.
basePath
+
'get_project_id'
let
param
=
{}
hlsPopup
.
showLoading
(
'请稍候'
)
vm
.
$post
(
url
,
param
).
then
(
function
(
res
)
{
vm
.
hlsPopup
.
hideLoading
()
if
(
res
.
result
===
'S'
)
{
window
.
localStorage
.
setItem
(
'project_id'
,
res
.
info
.
project_id
)
vm
.
$router
.
push
({
name
:
'CreateBaseInfo'
,
})
}
else
{
hlsPopup
.
showLongCenter
(
res
.
message
)
}
this
.
$router
.
push
({
name
:
'SalesInfo'
,
})
},
loadMore
()
{},
...
...
src/pages/contractCreate/sales-info.vue
View file @
a049cad5
...
...
@@ -154,6 +154,7 @@ export default {
bp_agent_id
:
''
,
// 经销商id
bp_agent_name
:
''
,
// 经销商名称
salesInfo
:
{
bp_type
:
window
.
localStorage
.
bp_type
,
bp_id_tenant
:
''
,
// 承租人id
business_type
:
''
,
// 业务类型
bp_id_agent
:
''
,
// 经销商id
...
...
@@ -186,7 +187,7 @@ export default {
vm
.
inflow_line
=
''
// 授信总额度
vm
.
inflow_used
=
''
// 已使用授信额度
vm
.
inflow_reset
=
''
// 剩余授信额度
vm
.
user_bp_type
=
vm
.
$route
.
params
.
user_
bp_type
vm
.
user_bp_type
=
window
.
localStorage
.
bp_type
vm
.
sales
=
window
.
localStorage
.
bp_name
vm
.
salesInfo
=
{
bp_id_tenant
:
''
,
// 承租人id
...
...
@@ -197,6 +198,7 @@ export default {
factory
:
''
,
// 主机厂id
manu_manager
:
''
,
// 办事处业务员
dates
:
'请选择'
,
bp_type
:
window
.
localStorage
.
bp_type
,
}
vm
.
businessQuery
()
vm
.
agentQuery
()
...
...
@@ -432,9 +434,12 @@ export default {
vm
.
hlsPopup
.
showLoading
(
'请稍候'
)
vm
.
hlsHttp
.
post
(
url
,
param
).
then
(
function
(
res
)
{
vm
.
hlsPopup
.
hideLoading
()
console
.
log
(
'销售信息保存'
,
res
)
if
(
res
.
result
===
'S'
)
{
hlsPopup
.
showLongCenter
(
'创建成功!'
)
window
.
localStorage
.
setItem
(
'project_id'
,
res
.
project_id
)
vm
.
$router
.
push
({
name
:
'CreateBaseInfo'
,
})
}
})
},
...
...
src/pages/myInfo/my-info.vue
View file @
a049cad5
...
...
@@ -734,6 +734,7 @@ export default {
window
.
localStorage
.
setItem
(
'bp_name'
,
res
.
info
.
user_bp_name
)
window
.
localStorage
.
setItem
(
'bp_identity'
,
res
.
info
.
bp_identity
)
window
.
localStorage
.
setItem
(
'bp_class'
,
res
.
info
.
user_bp_class
)
window
.
localStorage
.
setItem
(
'bp_type'
,
res
.
info
.
user_bp_type
)
vm
.
user_bp_name
=
res
.
info
.
user_bp_name
vm
.
user_bp_type
=
res
.
info
.
user_bp_type
vm
.
user_phone
=
res
.
info
.
user_phone
...
...
src/router/index.js
View file @
a049cad5
...
...
@@ -123,7 +123,6 @@ import ContractCreateList from '@/pages/contractCreate/contract-create-list'
import
SalesInfo
from
'@/pages/contractCreate/sales-info'
import
PickLessee
from
'@/pages/contractCreate/pick-lessee'
import
CreateBaseInfo
from
'@/pages/contractCreate/create-base-info'
import
AddPerson
from
'@/pages/contractCreate/add-person'
import
CreateRentInfo
from
'@/pages/contractCreate/creat-rent-info'
import
CreateEnclosureInfo
from
'@/pages/contractCreate/create-enclosure-info'
...
...
@@ -295,7 +294,6 @@ export default new Router({
{
path
:
'/sales-info'
,
component
:
SalesInfo
,
name
:
'SalesInfo'
,
meta
:
{
keepAlive
:
true
}},
{
path
:
'/pick-lessee'
,
component
:
PickLessee
,
name
:
'PickLessee'
,
meta
:
{
keepAlive
:
true
}},
{
path
:
'/create-base-info'
,
component
:
CreateBaseInfo
,
name
:
'CreateBaseInfo'
,
meta
:
{
keepAlive
:
true
}},
{
path
:
'/add-person'
,
component
:
AddPerson
,
name
:
'AddPerson'
,
meta
:
{
keepAlive
:
true
}},
{
path
:
'/create-rent-info'
,
component
:
CreateRentInfo
,
name
:
'CreateRentInfo'
,
meta
:
{
keepAlive
:
true
}},
{
path
:
'/create-enclosure-info'
,
component
:
CreateEnclosureInfo
,
name
:
'CreateEnclosureInfo'
,
meta
:
{
keepAlive
:
true
}},
...
...
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