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
0c717107
Commit
0c717107
authored
Dec 27, 2019
by
linxin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add
parent
71407b29
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
252 additions
and
122 deletions
+252
-122
add-undertake.vue
src/pages/contractCreate/add-undertake.vue
+215
-0
create-base-info.vue
src/pages/contractCreate/create-base-info.vue
+23
-109
contract-record.vue
src/pages/pay/firstPay/contract-record.vue
+7
-6
contract-record.vue
src/pages/pay/payment/contract-record.vue
+7
-6
index.js
src/router/index.js
+0
-1
No files found.
src/pages/contractCreate/add
U
ndertake.vue
→
src/pages/contractCreate/add
-u
ndertake.vue
View file @
0c717107
<
template
>
<h-view
id=
"add-person"
>
<h-view
v-if=
"showFlag"
id=
"add-person"
>
<h-header
:proportion=
"[1,4,1]"
class=
"bar-custom"
>
<!--
<div
class=
"h-header-btn"
>
-->
<span
slot=
"center"
style=
"color:#fff"
>
添加担保人
</span>
<span
slot=
"right"
style=
"color:#fff"
@
click=
"showModalValue=false"
>
取消
</span>
<!--
</div>
-->
<span
slot=
"right"
style=
"color:#fff"
@
click=
"showFlag=false"
>
取消
</span>
</h-header>
<div
class=
"search has-header"
>
<input
v-model=
"keyWord"
placeholder=
"请输入担保人名称/证件号码"
>
...
...
@@ -27,9 +25,153 @@
</h-view>
</
template
>
<
script
>
export
default
{
props
:
{
bp_agent_id
:
{
type
:
String
,
default
:
''
,
},
},
data
()
{
return
{
undertakeList
:
[],
// 担保人列表
selectUdertake
:
[],
pagenum
:
1
,
keyWord
:
''
,
showFlag
:
false
,
}
},
watch
:
{
},
methods
:
{
show
()
{
this
.
showFlag
=
true
},
init
()
{
this
.
undertakeList
=
[]
this
.
selectUdertake
=
[]
this
.
pagenum
=
1
this
.
keyWord
=
''
},
unshow
()
{
this
.
showFlag
=
false
},
loadMore
()
{
if
(
this
.
keyWord
)
{
this
.
searchUndertake
()
}
else
{
this
.
getUndertake
()
}
},
searchUndertake
()
{
let
vm
=
this
let
randomString
=
Math
.
floor
(
Math
.
random
()
*
21
)
let
url
=
process
.
env
.
basePath
+
'prj_bp_guta_query'
+
'&index'
+
`'
${
randomString
}
'`
let
param
=
{
bp_agent_id
:
vm
.
bp_agent_id
,
pagesize
:
10
,
pagenum
:
vm
.
pageNumSearch
,
searchInput
:
vm
.
keyWord
,
}
hlsPopup
.
showLoading
(
'请稍候'
)
vm
.
$post
(
url
,
param
).
then
(
function
(
res
)
{
vm
.
hlsPopup
.
hideLoading
()
if
(
res
.
result
===
'S'
)
{
let
returnData
=
[]
returnData
=
res
.
lists
if
(
returnData
.
length
===
0
)
{
vm
.
undertakeList
=
returnData
vm
.
$refs
.
scroll
.
update
(
true
)
}
else
if
(
returnData
.
length
>
0
&&
returnData
.
length
<
10
)
{
vum
.
forEach
(
returnData
,
function
(
data
,
index
,
array
)
{
vm
.
undertakeList
=
returnData
})
vm
.
$refs
.
scroll
.
update
(
true
)
}
else
if
(
returnData
.
length
===
10
)
{
vum
.
forEach
(
returnData
,
function
(
data
,
index
,
array
)
{
vm
.
undertakeList
.
push
(
array
[
index
])
})
vm
.
pageNumSearch
++
vm
.
$refs
.
scroll
.
update
(
false
)
}
}
else
{
hlsPopup
.
showLongCenter
(
res
.
message
)
}
})
},
addUndertake
(
e
)
{
if
(
this
.
selectUdertake
.
length
===
0
)
{
this
.
selectUdertake
.
push
(
e
)
}
else
{
let
index
=
this
.
selectUdertake
.
findIndex
(
item
=>
{
if
(
item
.
bp_name
===
e
.
bp_name
)
{
return
true
}
})
if
(
index
!==
-
1
)
{
hlsPopup
.
showLongCenter
(
'您已添加了该担保人'
)
}
else
{
this
.
selectUdertake
.
push
(
e
)
}
}
this
.
$emit
(
'addUnder'
,
this
.
selectUdertake
)
setTimeout
(()
=>
{
this
.
showFlag
=
false
},
100
)
},
getUndertake
()
{
// 担保人查询
let
vm
=
this
let
randomString
=
Math
.
floor
(
Math
.
random
()
*
21
)
let
url
=
process
.
env
.
basePath
+
'prj_bp_guta_query'
+
'&index'
+
`'
${
randomString
}
'`
let
param
=
{
bp_agent_id
:
vm
.
bp_agent_id
,
pagesize
:
10
,
pagenum
:
vm
.
pageNum
,
searchInput
:
vm
.
keyWord
,
}
hlsPopup
.
showLoading
(
'请稍候'
)
vm
.
$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
.
undertakeList
.
push
(
array
[
index
])
})
vm
.
pagenum
++
vm
.
$refs
.
scroll
.
update
(
true
)
}
else
if
(
returnData
.
length
===
10
)
{
vum
.
forEach
(
returnData
,
function
(
data
,
index
,
array
)
{
vm
.
undertakeList
.
push
(
array
[
index
])
})
vm
.
pagenum
++
vm
.
$refs
.
scroll
.
update
(
false
)
}
}
else
{
hlsPopup
.
showLongCenter
(
res
.
message
)
}
})
},
},
}
</
script
>
<
style
lang=
"less"
scoped
>
#add-person {
position: absolute;
top:0;
z-index:999;
.item {
width: 359px;
margin: 0 auto;
...
...
src/pages/contractCreate/create-base-info.vue
View file @
0c717107
...
...
@@ -299,11 +299,15 @@
<tab-button
class=
"before"
@
click
.
native=
"$routeGo()"
>
上一步
</tab-button>
<tab-button
class=
"next"
@
click
.
native=
"save"
>
下一步
</tab-button>
</bottom-tab>
<
h-modal
ref=
"modal"
v-model=
"showModalValue"
class=
"flow"
position=
"bottom
"
/>
<
AddUnderTake
ref=
"addperson"
:bp_agent_id=
"bp_agent_id"
@
addUnder=
"addUnder
"
/>
</h-view>
</
template
>
<
script
>
import
AddUnderTake
from
'../../pages/contractCreate/add-undertake'
export
default
{
components
:
{
AddUnderTake
,
},
data
()
{
return
{
checked
:
false
,
// 农行代扣
...
...
@@ -322,7 +326,6 @@ export default {
equipInfonList
:
[],
// 设备信息
engeList
:
[],
// 工程合同查询
nativeList
:
[],
// 企业性质查询
undertakeList
:
[],
// 担保人列表
selectUdertake
:
[],
// 已选择的担保人列表
NPBaseInfo
:
{},
// 自然人基本信息
ORGBaseInfo
:
{},
// 企业基本信息
...
...
@@ -416,33 +419,30 @@ export default {
}
})
},
mounted
()
{
},
methods
:
{
getSaveInfo
()
{
},
addPerson
()
{
this
.
showModalValue
=
true
this
.
getUndertake
()
},
addUndertake
(
e
)
{
if
(
this
.
selectUdertake
.
length
===
0
)
{
this
.
selectUdertake
.
push
(
e
)
}
else
{
let
index
=
this
.
selectUdertake
.
findIndex
(
item
=>
{
if
(
item
.
bp_name
===
e
.
bp_name
)
{
return
true
}
})
if
(
index
!==
-
1
)
{
hlsPopup
.
showLongCenter
(
'您已添加了该担保人'
)
}
else
{
this
.
selectUdertake
.
push
(
e
)
addUnder
(
e
)
{
let
index
=
this
.
selectUdertake
.
findIndex
(
item
=>
{
if
(
item
.
bp_name
===
e
.
bp_name
)
{
return
true
}
})
if
(
index
!==
-
1
)
{
hlsPopup
.
showLongCenter
(
'您已添加了该担保人'
)
}
else
{
this
.
selectUdertake
.
push
(...
e
)
}
setTimeout
(()
=>
{
this
.
showModalValue
=
false
},
100
)
},
addPerson
()
{
this
.
$refs
.
addperson
.
init
()
this
.
$refs
.
addperson
.
getUndertake
()
this
.
$refs
.
addperson
.
show
()
},
makeData
()
{
let
obj
=
{}
this
.
selectUdertake
.
forEach
((
i
,
index
,
arr
)
=>
{
...
...
@@ -512,93 +512,7 @@ export default {
this
.
getORGnative
()
}
},
loadMore
()
{
if
(
this
.
keyWord
)
{
this
.
searchUndertake
()
}
else
{
this
.
getUndertake
()
}
},
searchUndertake
()
{
let
vm
=
this
let
randomString
=
Math
.
floor
(
Math
.
random
()
*
21
)
let
url
=
process
.
env
.
basePath
+
'prj_bp_guta_query'
+
'&index'
+
`'
${
randomString
}
'`
let
param
=
{
bp_agent_id
:
vm
.
bp_agent_id
,
pagesize
:
10
,
pagenum
:
vm
.
pageNumSearch
,
searchInput
:
vm
.
keyWord
,
}
hlsPopup
.
showLoading
(
'请稍候'
)
vm
.
$post
(
url
,
param
).
then
(
function
(
res
)
{
vm
.
hlsPopup
.
hideLoading
()
if
(
res
.
result
===
'S'
)
{
let
returnData
=
[]
returnData
=
res
.
lists
if
(
returnData
.
length
===
0
)
{
vm
.
undertakeList
=
returnData
vm
.
$refs
.
scroll
.
update
(
true
)
}
else
if
(
returnData
.
length
>
0
&&
returnData
.
length
<
10
)
{
vum
.
forEach
(
returnData
,
function
(
data
,
index
,
array
)
{
vm
.
undertakeList
=
returnData
})
vm
.
$refs
.
scroll
.
update
(
true
)
}
else
if
(
returnData
.
length
===
10
)
{
vum
.
forEach
(
returnData
,
function
(
data
,
index
,
array
)
{
vm
.
undertakeList
.
push
(
array
[
index
])
})
vm
.
pageNumSearch
++
vm
.
$refs
.
scroll
.
update
(
false
)
}
}
else
{
hlsPopup
.
showLongCenter
(
res
.
message
)
}
})
},
getUndertake
()
{
// 担保人查询
let
vm
=
this
let
randomString
=
Math
.
floor
(
Math
.
random
()
*
21
)
let
url
=
process
.
env
.
basePath
+
'prj_bp_guta_query'
+
'&index'
+
`'
${
randomString
}
'`
let
param
=
{
bp_agent_id
:
vm
.
bp_agent_id
,
pagesize
:
10
,
pagenum
:
vm
.
pageNum
,
searchInput
:
vm
.
keyWord
,
}
hlsPopup
.
showLoading
(
'请稍候'
)
vm
.
$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
.
undertakeList
.
push
(
array
[
index
])
})
vm
.
pagenum
++
vm
.
$refs
.
scroll
.
update
(
true
)
}
else
if
(
returnData
.
length
===
10
)
{
vum
.
forEach
(
returnData
,
function
(
data
,
index
,
array
)
{
vm
.
undertakeList
.
push
(
array
[
index
])
})
vm
.
pagenum
++
vm
.
$refs
.
scroll
.
update
(
false
)
}
}
else
{
hlsPopup
.
showLongCenter
(
res
.
message
)
}
})
},
getNPInfo
()
{
let
vm
=
this
let
url
=
process
.
env
.
basePath
+
'bp_np_info_query'
...
...
src/pages/pay/firstPay/contract-record.vue
View file @
0c717107
...
...
@@ -123,12 +123,13 @@ export default {
vm
.
hlsPopup
.
hideLoading
()
if
(
res
.
result
===
'S'
)
{
vm
.
prj_lists
=
res
.
prj_lists
// vm.prj_lists.forEach(i => {
// i.cf_lists.forEach(j => {
// let num = parseFloat(j.due_amount) - parseFloat(j.received_amount)
// vm.$set(j, 'amount', num)
// })
// })
vm
.
prj_lists
.
forEach
(
i
=>
{
i
.
cf_lists
.
forEach
(
j
=>
{
// let num = parseFloat(j.due_amount) - parseFloat(j.received_amount)
let
num
=
''
vm
.
$set
(
j
,
'amount'
,
num
)
})
})
}
else
{
hlsPopup
.
showLongCenter
(
res
.
message
)
}
...
...
src/pages/pay/payment/contract-record.vue
View file @
0c717107
...
...
@@ -217,12 +217,13 @@ export default {
vm
.
hlsPopup
.
hideLoading
()
if
(
res
.
result
===
'S'
)
{
vm
.
info
=
res
.
prj_lists
// vm.info.forEach(i => {
// i.con_lists.forEach(j => {
// let num = (parseFloat(j.due_amount) - parseFloat(j.received_amount))
// vm.$set(j, 'amount', num)
// })
// })
vm
.
info
.
forEach
(
i
=>
{
i
.
con_lists
.
forEach
(
j
=>
{
// let num = (parseFloat(j.due_amount) - parseFloat(j.received_amount))
let
num
=
''
vm
.
$set
(
j
,
'amount'
,
num
)
})
})
vm
.
showList
=
vm
.
info
}
else
{
hlsPopup
.
showLongCenter
(
res
.
message
)
...
...
src/router/index.js
View file @
0c717107
...
...
@@ -296,7 +296,6 @@ export default new Router({
{
path
:
'/create-base-info'
,
component
:
CreateBaseInfo
,
name
:
'CreateBaseInfo'
,
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
}},
// 我的发票
{
path
:
'/invoice'
,
component
:
MyInvoice
,
name
:
'MyInvoice'
,
meta
:
{
keepAlive
:
false
}},
],
...
...
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