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
4cb0d869
Commit
4cb0d869
authored
Dec 02, 2019
by
786817560
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
'scroll修改'
parent
ba8e1dbb
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
201 additions
and
322 deletions
+201
-322
contract-records.vue
src/pages/contractInquire/contract-records.vue
+121
-250
contract-signing.vue
src/pages/contractSigning/contract-signing.vue
+35
-19
start-list.vue
src/pages/contractStart/start-list.vue
+1
-0
contract-list.vue
src/pages/distributorSign/contract-list.vue
+44
-53
No files found.
src/pages/contractInquire/contract-records.vue
View file @
4cb0d869
This diff is collapsed.
Click to expand it.
src/pages/contractSigning/contract-signing.vue
View file @
4cb0d869
<!--
* @Author: your name
* @Date: 2019-09-29 10:02:11
* @LastEditTime: 2019-11-29 1
2:40:38
* @LastEditTime: 2019-11-29 1
7:31:00
* @LastEditors: Please set LastEditors
* @Description: In User Settings Edit
-->
...
...
@@ -23,14 +23,13 @@
</div>
<scroll
v-show=
"num === 1"
ref=
"scroll"
:updateData=
"[s
ubmit
Lists]"
:updateData=
"[s
how
Lists]"
:pullUp=
"true"
@
pullingUp=
"loadMore"
>
<div
class=
"wrap"
>
<div
v-for=
"(item,index) in s
ubmit
Lists"
:key=
"index"
class=
"contract-lists"
>
<div
v-for=
"(item,index) in s
how
Lists"
:key=
"index"
class=
"contract-lists"
>
<div
class=
"pro-code"
@
click=
"goDetails(item)"
>
<img
src=
"@/assets/distributorSign/fileIcon.png"
alt=
""
class=
"file-icon"
>
<p>
...
...
@@ -48,9 +47,9 @@
</div>
</scroll>
<scroll
<
!--
<
scroll
v-show=
"num === 2"
ref=
"scroll
s
"
ref=
"scroll"
:updateData=
"[approvedLists]"
:pullUp=
"true"
@
pullingUp=
"loadMore"
...
...
@@ -72,7 +71,7 @@
</div>
</div>
</div>
</scroll>
</scroll>
-->
</h-view>
</
template
>
...
...
@@ -99,17 +98,23 @@ export default {
approvedLists
:
[],
// 已签约
showLists
:
[],
lists
:
[],
submitFlag
:
false
,
approvedFlag
:
false
,
}
},
watch
:
{
'num'
:
{
handler
(
newVal
,
oldVal
)
{
this
.
$refs
.
scroll
.
update
(
false
)
if
(
newVal
===
2
)
{
if
(
!
this
.
approvedFlag
)
{
this
.
contractList
()
}
this
.
$refs
.
scroll
.
scrollToTop
()
this
.
showLists
=
this
.
approvedLists
}
else
if
(
newVal
===
1
)
{
this
.
showLists
=
this
.
submitLists
this
.
$refs
.
scroll
.
scrollToTop
()
// this.$refs.scroll.update(false)
}
},
immediate
:
true
,
...
...
@@ -175,7 +180,7 @@ export default {
vm
.
hlsPopup
.
hideLoading
()
if
(
res
.
result
===
'S'
)
{
vm
.
submitLists
=
res
.
lists
vm
.
s
ubmitFlag
=
true
vm
.
s
howLists
=
vm
.
submitLists
if
(
res
.
lists
.
length
>
0
&&
res
.
lists
.
length
<
10
)
{
vm
.
$refs
.
scroll
.
update
(
true
)
}
else
if
(
res
.
lists
.
length
===
10
)
{
...
...
@@ -201,10 +206,11 @@ export default {
console
.
log
(
res
.
lists
)
vm
.
approvedLists
=
res
.
lists
vm
.
approvedFlag
=
true
vm
.
showLists
=
vm
.
approvedLists
if
(
res
.
lists
.
length
>
0
&&
res
.
lists
.
length
<
10
)
{
vm
.
$refs
.
scroll
s
.
update
(
true
)
vm
.
$refs
.
scroll
.
update
(
true
)
}
else
if
(
res
.
lists
.
length
===
10
)
{
vm
.
$refs
.
scroll
s
.
update
(
false
)
vm
.
$refs
.
scroll
.
update
(
false
)
}
}
else
{
hlsPopup
.
showLongCenter
(
res
.
message
)
...
...
@@ -225,7 +231,7 @@ export default {
confirm_status
:
'SUBMIT'
,
searchInput
:
vm
.
searchInput
,
}
vm
.
hlsPopup
.
showLoading
(
'
数据加载中
'
)
vm
.
hlsPopup
.
showLoading
(
'
请稍后
'
)
vm
.
hlsHttp
.
post
(
url
,
param
).
then
(
function
(
res
)
{
vm
.
hlsPopup
.
hideLoading
()
let
returnData
=
[]
...
...
@@ -244,6 +250,7 @@ export default {
})
vm
.
$refs
.
scroll
.
update
(
false
)
}
vm
.
showLists
=
vm
.
submitLists
}
else
{
hlsPopup
.
showLongCenter
(
res
.
message
)
}
...
...
@@ -258,25 +265,26 @@ export default {
confirm_status
:
'APPROVED'
,
searchInput
:
vm
.
searchInput
,
}
vm
.
hlsPopup
.
showLoading
(
'
数据加载中
'
)
vm
.
hlsPopup
.
showLoading
(
'
请稍后
'
)
vm
.
hlsHttp
.
post
(
url
,
param
).
then
(
function
(
res
)
{
vm
.
hlsPopup
.
hideLoading
()
let
returnData
=
[]
if
(
res
.
result
===
'S'
)
{
returnData
=
res
.
lists
if
(
returnData
.
length
===
0
)
{
vm
.
$refs
.
scroll
s
.
update
(
true
)
vm
.
$refs
.
scroll
.
update
(
true
)
}
else
if
(
returnData
.
length
>
0
&&
returnData
.
length
<
10
)
{
returnData
.
forEach
((
data
,
index
,
array
)
=>
{
vm
.
approvedLists
.
push
(
array
[
index
])
})
vm
.
$refs
.
scroll
s
.
update
(
true
)
vm
.
$refs
.
scroll
.
update
(
true
)
}
else
if
(
returnData
.
length
===
10
)
{
returnData
.
forEach
((
data
,
index
,
array
)
=>
{
vm
.
approvedLists
.
push
(
array
[
index
])
})
vm
.
$refs
.
scroll
s
.
update
(
false
)
vm
.
$refs
.
scroll
.
update
(
false
)
}
vm
.
showLists
=
vm
.
approvedLists
}
else
{
hlsPopup
.
showLongCenter
(
res
.
message
)
}
...
...
@@ -294,11 +302,15 @@ export default {
confirm_status
:
'SUBMIT'
,
searchInput
:
vm
.
searchInput
,
}
vm
.
hlsPopup
.
showLoading
(
'
数据加载中
'
)
vm
.
hlsPopup
.
showLoading
(
'
请稍后
'
)
let
res
=
await
vm
.
$post
(
url
,
param
)
if
(
res
.
result
===
'S'
)
{
vm
.
hlsPopup
.
hideLoading
()
vm
.
submitLists
=
res
.
lists
if
(
vm
.
num
===
1
)
{
vm
.
showLists
=
vm
.
submitLists
}
// vm.showLists = vm.submitLists
if
(
res
.
lists
.
length
>=
0
&&
res
.
lists
.
length
<
10
)
{
vm
.
$refs
.
scroll
.
update
(
true
)
}
else
if
(
res
.
lists
.
length
===
10
)
{
...
...
@@ -325,10 +337,14 @@ export default {
vm
.
hlsHttp
.
post
(
url
,
param
).
then
(
function
(
res
)
{
vm
.
hlsPopup
.
hideLoading
()
vm
.
approvedLists
=
res
.
lists
if
(
vm
.
num
===
2
)
{
vm
.
showLists
=
vm
.
approvedLists
}
// vm.showLists = vm.approvedLists
if
(
res
.
lists
.
length
>=
0
&&
res
.
lists
.
length
<
10
)
{
vm
.
$refs
.
scroll
s
.
update
(
true
)
vm
.
$refs
.
scroll
.
update
(
true
)
}
else
if
(
res
.
lists
.
length
===
10
)
{
vm
.
$refs
.
scroll
s
.
update
(
false
)
vm
.
$refs
.
scroll
.
update
(
false
)
}
})
},
...
...
src/pages/contractStart/start-list.vue
View file @
4cb0d869
...
...
@@ -136,6 +136,7 @@ export default {
},
getTabNum
(
i
)
{
this
.
tabNum
=
i
this
.
$refs
.
scroll
.
scrollToTop
()
},
goAdd
()
{
hlsPopup
.
showLongCenter
(
'暂不支持无关联进件的车辆发送'
)
...
...
src/pages/distributorSign/contract-list.vue
View file @
4cb0d869
...
...
@@ -8,7 +8,7 @@
<h-view
id=
"distribute-sign"
title=
"经销商签约"
>
<h-header
:proportion=
"[5,1,1]"
class=
"bar-custom"
>
<div
slot=
"left"
class=
"h-header-btn"
>
<img
src=
"@/assets/userBind/arrow.png"
@
click=
"
goBack
"
>
<img
src=
"@/assets/userBind/arrow.png"
@
click=
"
$routeGo()
"
>
<span>
经销商签约
</span>
</div>
</h-header>
...
...
@@ -21,21 +21,20 @@
<input
v-model=
"searchInput"
type=
"text"
placeholder=
"请输入合同号/承租人名称"
>
</div>
<scroll
v-show=
"num === 1"
ref=
"scroll"
:updateData=
"[s
ubmit
Lists]"
:updateData=
"[s
how
Lists]"
:pullUp=
"true"
@
pullingUp=
"loadMore"
>
<div
class=
"wrap"
>
<div
v-for=
"(item,index) in s
ubmit
Lists"
:key=
"index"
class=
"contract-lists"
>
<div
v-for=
"(item,index) in s
how
Lists"
:key=
"index"
class=
"contract-lists"
>
<div
class=
"pro-code"
@
click=
"goDetails(item)"
>
<img
src=
"@/assets/distributorSign/fileIcon.png"
alt=
""
class=
"file-icon"
>
<p>
<span>
合同号
</span>
<span>
{{
item
.
project_number
}}
</span>
</p>
<img
src=
"@/assets/
constractSigning/righticon
.png"
alt=
""
class=
"arrow"
>
<img
src=
"@/assets/
distributorSign/goDetails
.png"
alt=
""
class=
"arrow"
>
</div>
<div
class=
"box"
>
<div><p>
承租人
</p><p>
{{
item
.
bp_name
}}
</p></div>
...
...
@@ -45,9 +44,9 @@
</div>
</div>
</scroll>
<scroll
<
!--
<
scroll
v-show=
"num === 2"
ref=
"scroll
s
"
ref=
"scroll"
:updateData=
"[approvedLists]"
:pullUp=
"true"
@
pullingUp=
"loadMore"
...
...
@@ -60,7 +59,7 @@
<span>
合同号
</span>
<span>
{{
item
.
project_number
}}
</span>
</p>
<img
src=
"@/assets/
constractSigning/righticon
.png"
alt=
""
class=
"arrow"
>
<img
src=
"@/assets/
distributorSign/goDetails
.png"
alt=
""
class=
"arrow"
>
</div>
<div
class=
"box"
>
<div><p>
承租人
</p><p>
{{
item
.
bp_name
}}
</p></div>
...
...
@@ -69,7 +68,7 @@
</div>
</div>
</div>
</scroll>
</scroll>
-->
</h-view>
</
template
>
...
...
@@ -91,28 +90,29 @@ export default {
uncheck1
:
unCheck1
,
uncheck2
:
unCheck2
,
lists
:
[],
showLists
:
[],
submitLists
:
[],
// 待签约列表
approvedLists
:
[],
// 已签约列表
approvedFlag
:
false
,
}
},
watch
:
{
// 'num': {
// handler (newVal, oldVal) {
// if (newVal === 2) {
// if (!this.approvedFlag) {
// this.getLists()
// }
// }
// },
// immediate: true,
// },
num
()
{
if
(
this
.
num
===
2
)
{
if
(
!
this
.
approvedFlag
)
{
this
.
getLists
()
'num'
:
{
handler
(
newVal
,
oldVal
)
{
this
.
$refs
.
scroll
.
update
(
false
)
if
(
newVal
===
2
)
{
if
(
!
this
.
approvedFlag
)
{
this
.
getLists
()
}
this
.
$refs
.
scroll
.
scrollToTop
()
this
.
showLists
=
this
.
approvedLists
}
else
if
(
newVal
===
1
)
{
this
.
showLists
=
this
.
submitLists
this
.
$refs
.
scroll
.
scrollToTop
()
// this.$refs.scroll.update(false)
}
}
},
immediate
:
true
,
},
searchInput
()
{
let
vm
=
this
...
...
@@ -168,7 +168,7 @@ export default {
if
(
res
.
result
===
'S'
)
{
console
.
log
(
res
.
lists
)
vm
.
submitLists
=
res
.
lists
//
vm.showLists = vm.submitLists
vm
.
showLists
=
vm
.
submitLists
if
(
res
.
lists
.
length
>
0
&&
res
.
lists
.
length
<
10
)
{
vm
.
$refs
.
scroll
.
update
(
true
)
}
else
if
(
res
.
lists
.
length
===
10
)
{
...
...
@@ -194,10 +194,11 @@ export default {
console
.
log
(
res
.
lists
)
vm
.
approvedLists
=
res
.
lists
vm
.
approvedFlag
=
true
vm
.
showLists
=
vm
.
approvedLists
if
(
res
.
lists
.
length
>
0
&&
res
.
lists
.
length
<
10
)
{
vm
.
$refs
.
scroll
s
.
update
(
true
)
vm
.
$refs
.
scroll
.
update
(
true
)
}
else
if
(
res
.
lists
.
length
===
10
)
{
vm
.
$refs
.
scroll
s
.
update
(
false
)
vm
.
$refs
.
scroll
.
update
(
false
)
}
}
else
{
hlsPopup
.
showLongCenter
(
res
.
message
)
...
...
@@ -206,7 +207,6 @@ export default {
}
},
loadMore
()
{
console
.
log
(
'lodeMore'
)
let
vm
=
this
if
(
vm
.
num
===
1
)
{
vm
.
submitPagenum
++
...
...
@@ -237,6 +237,7 @@ export default {
})
vm
.
$refs
.
scroll
.
update
(
false
)
}
vm
.
showLists
=
vm
.
submitLists
}
else
{
hlsPopup
.
showLongCenter
(
res
.
message
)
}
...
...
@@ -258,25 +259,26 @@ export default {
if
(
res
.
result
===
'S'
)
{
returnData
=
res
.
lists
if
(
returnData
.
length
===
0
)
{
vm
.
$refs
.
scroll
s
.
update
(
true
)
vm
.
$refs
.
scroll
.
update
(
true
)
}
else
if
(
returnData
.
length
>
0
&&
returnData
.
length
<
10
)
{
returnData
.
forEach
((
data
,
index
,
array
)
=>
{
vm
.
approvedLists
.
push
(
array
[
index
])
})
vm
.
$refs
.
scroll
s
.
update
(
true
)
vm
.
$refs
.
scroll
.
update
(
true
)
}
else
if
(
returnData
.
length
===
10
)
{
returnData
.
forEach
((
data
,
index
,
array
)
=>
{
vm
.
approvedLists
.
push
(
array
[
index
])
})
vm
.
$refs
.
scroll
s
.
update
(
false
)
vm
.
$refs
.
scroll
.
update
(
false
)
}
vm
.
showLists
=
vm
.
approvedLists
}
else
{
hlsPopup
.
showLongCenter
(
res
.
message
)
}
})
}
},
async
submitSearch
()
{
submitSearch
()
{
let
vm
=
this
vm
.
submitPagenum
=
1
let
url
=
$config
.
basePath
+
'prj_confirm_list_query'
...
...
@@ -288,20 +290,16 @@ export default {
searchInput
:
vm
.
searchInput
,
}
vm
.
hlsPopup
.
showLoading
(
'请稍后'
)
let
res
=
await
vm
.
$post
(
url
,
param
)
if
(
res
.
result
===
'S'
)
{
vm
.
hlsHttp
.
post
(
url
,
param
).
then
(
function
(
res
)
{
vm
.
hlsPopup
.
hideLoading
()
vm
.
submitLists
=
res
.
lists
vm
.
showLists
=
vm
.
submitLists
if
(
res
.
lists
.
length
>=
0
&&
res
.
lists
.
length
<
10
)
{
vm
.
$refs
.
scroll
.
update
(
true
)
}
else
if
(
res
.
lists
.
length
===
10
)
{
vm
.
$refs
.
scroll
.
update
(
false
)
}
return
true
}
else
{
hlsPopup
.
showLongCenter
(
res
.
message
)
return
false
}
})
},
approvedearch
()
{
let
vm
=
this
...
...
@@ -319,18 +317,17 @@ export default {
// vm.hlsPopup.hideLoading()
// console.log(res.lists)
vm
.
approvedLists
=
res
.
lists
vm
.
showLists
=
vm
.
approvedLists
if
(
res
.
lists
.
length
>=
0
&&
res
.
lists
.
length
<
10
)
{
vm
.
$refs
.
scroll
s
.
update
(
true
)
vm
.
$refs
.
scroll
.
update
(
true
)
}
else
if
(
res
.
lists
.
length
===
10
)
{
vm
.
$refs
.
scroll
s
.
update
(
false
)
vm
.
$refs
.
scroll
.
update
(
false
)
}
})
},
async
search
()
{
let
res
=
await
this
.
submitSearch
()
if
(
res
)
{
this
.
approvedearch
()
}
search
()
{
this
.
submitSearch
()
setTimeout
(
this
.
approvedearch
,
1000
)
},
goDetails
(
item
)
{
this
.
$router
.
push
({
...
...
@@ -343,12 +340,6 @@ export default {
dateConverse
(
date
)
{
return
date
.
replace
(
/
\/
/g
,
'-'
)
},
// 返回个人中心
goBack
()
{
this
.
$router
.
push
({
name
:
'MyInfo'
,
})
},
},
}
</
script
>
...
...
@@ -415,7 +406,7 @@ export default {
font-family: PingFangSC-Regular;
font-size: 14px;
color: #888C8F;
//
line-height: 36px;
line-height: 36px;
background: url("../../assets/contractStart/search1.png") 320px no-repeat;
background-size: 16px 16px;
background-color: rgba(239, 239, 239, 0.55);
...
...
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