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
0fd584d4
Commit
0fd584d4
authored
Apr 21, 2023
by
白日依山山山
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
客户准入、待办已办搜索栏和加载列表、商务政策里的保证押金数据格式
parent
48cfe4a3
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
88 additions
and
45 deletions
+88
-45
contract-detail.vue
src/pages/contractSigning/contract-detail.vue
+3
-4
BaseInfoOrg.vue
src/pages/customerAccessApply/components/BaseInfoOrg.vue
+1
-2
to-do-list.vue
src/pages/functionCenter/to-do-list.vue
+84
-39
No files found.
src/pages/contractSigning/contract-detail.vue
View file @
0fd584d4
...
...
@@ -159,7 +159,7 @@
</item>
<item>
<div
slot=
"name"
class=
"font-color"
>
保险押金
</div>
<span
slot=
"content"
>
{{
itemInfo
.
insurance_fee
*
itemInfo
.
product_num
|
currency
}}
</span>
<span
slot=
"content"
>
{{
parseFloat
(
itemInfo
.
insurance_fee
*
itemInfo
.
product_num
).
toFixed
(
2
)
|
currency
}}
</span>
</item>
<item>
<div
slot=
"name"
class=
"font-color"
>
GPS费用
</div>
...
...
@@ -304,7 +304,7 @@ export default {
guarantorInfo
:
[],
// 担保人信息
attachArray
:
[],
// 附件数组
bp_class
:
this
.
$route
.
params
.
item
.
bp_class
,
// 承租人性质(自然人,企业)
info
:
[]
,
// 租赁信息
info
:
{}
,
// 租赁信息
baseInfo
:
{},
// 基本信息
project_id
:
''
,
bank_flag
:
false
,
...
...
@@ -816,8 +816,7 @@ export default {
vm
.
hlsHttp
.
post
(
url
,
param
).
then
(
function
(
res
)
{
vm
.
hlsPopup
.
hideLoading
()
if
(
res
.
result
===
'S'
)
{
// vm.info = res.quotation_lists// 拆分
vm
.
info
[
0
]
=
res
.
info
vm
.
info
=
res
.
quotation_lists
}
})
},
...
...
src/pages/customerAccessApply/components/BaseInfoOrg.vue
View file @
0fd584d4
...
...
@@ -118,8 +118,7 @@ export default {
return
}
// 身份证校验
let
idcardReg
=
/^
[
1-9
]\d{7}((
0
\d)
|
(
1
[
0-2
]))(([
0|1|2
]\d)
|3
[
0-1
])\d{3}
$|^
[
1-9
]\d{5}[
1-9
]\d{3}((
0
\d)
|
(
1
[
0-2
]))(([
0|1|2
]\d)
|3
[
0-1
])\d{3}([
0-9
]
|X
)
$/
;
if
(
!
idcardReg
.
test
(
obj
.
contact_card_no
))
{
if
(
!
this
.
hlsUtil
.
isCardID
(
obj
.
contact_card_no
))
{
hlsPopup
.
showLongCenter
(
'联系人身份证格式错误!'
)
return
}
...
...
src/pages/functionCenter/to-do-list.vue
View file @
0fd584d4
...
...
@@ -9,30 +9,47 @@
<div
class=
"wrap has-header"
>
<div
class=
"tab"
>
<p>
<span
:class=
"
{ selected: selected === 'todo' }" @click="isSelected('todo')">
<img
v-if=
"selected === 'todo'"
src=
"@/assets/functionCenter/todo-check.png"
><img
v-if=
"selected === 'done'"
<span
:class=
"
{ selected: selected === 'todo' }" @click="isSelected('todo')">
<img
v-if=
"selected === 'todo'"
src=
"@/assets/functionCenter/todo-check.png"
><img
v-if=
"selected === 'done'"
src=
"@/assets/functionCenter/todo.png"
>
待办
</span>
</p>
<p>
<span
:class=
"
{ selected: selected === 'done' }" @click="isSelected('done')">
<img
v-if=
"selected === 'done'"
src=
"@/assets/functionCenter/done-check.png"
><img
v-if=
"selected === 'todo'"
<span
:class=
"
{ selected: selected === 'done' }" @click="isSelected('done')">
<img
v-if=
"selected === 'done'"
src=
"@/assets/functionCenter/done-check.png"
><img
v-if=
"selected === 'todo'"
src=
"@/assets/functionCenter/done.png"
>
已办
</span>
</p>
</div>
<div
class=
"search"
>
<input
v-model=
"searchInput"
type=
"text"
placeholder=
"请输入客户名称/合同编号查询"
@
input=
"searchList()"
>
<!--
<input
v-model=
"searchInput"
type=
"text"
placeholder=
"请输入客户名称/合同编号查询"
@
input=
"searchList()"
>
-->
<!--
<Search
v-model=
"searchInput"
placeholder=
"请输入客户名称/合同编号查询"
@
search=
"searchList"
/>
-->
<Search
v-model=
"searchInput"
show-action
placeholder=
"请请输入客户名称/合同编号查询"
@
search=
"searchList"
>
<template
#
action
>
<div
@
click=
"searchList"
>
搜索
</div>
</
template
>
</Search>
</div>
</div>
<div
v-if=
"
(todoList.length === 0 && selected === 'todo') ||
(doneList.length === 0 && selected === 'done')
"
>
<div
v-if=
"
(todoList.length === 0 && selected === 'todo') ||
(doneList.length === 0 && selected === 'done')
"
>
<div
class=
"display"
>
<img
src=
"@/assets/messageCenter/noMsg.png"
alt=
""
>
</div>
</div>
<scroll
v-if=
"selected === 'todo' && todoList.length > 0"
ref=
"scroll"
:updateData=
"todoList"
:pullUp=
"true"
<scroll
v-if=
"selected === 'todo' && todoList.length > 0"
ref=
"scroll"
:updateData=
"todoList"
:pullUp=
"true"
:autoUpdate=
"true"
:listenScroll=
"true"
class=
"scroll-content"
@
pullingUp=
"loadMore()"
>
<div
class=
"pay-content"
>
<div
v-for=
"(item, index) in todoList"
:key=
"index"
class=
"contract-item"
>
...
...
@@ -40,8 +57,9 @@
<img
src=
"@/assets/contractRepayment/contract.png"
alt=
""
>
<h2>
{{ item.workflow_desc }}
</h2>
<p>
<img
src=
"@/assets/functionCenter/in@2x.png"
alt=
""
@
click=
"approvalInfo(item, 'todo')
"
>
<img
src=
"@/assets/functionCenter/in@2x.png"
alt=
""
@
click=
"approvalInfo(item, 'todo')
"
>
</p>
</div>
<div
class=
"center"
>
...
...
@@ -52,7 +70,8 @@
</div>
</scroll>
<scroll
v-if=
"selected === 'done' && doneList.length > 0"
ref=
"scroll"
:updateData=
"doneList"
:pullUp=
"true"
<scroll
v-if=
"selected === 'done' && doneList.length > 0"
ref=
"scroll"
:updateData=
"doneList"
:pullUp=
"true"
:autoUpdate=
"true"
:listenScroll=
"true"
@
pullingUp=
"loadMore()"
>
<div
class=
"pay-content"
>
<div
v-for=
"(item, index) in doneList"
:key=
"index"
class=
"contract-item"
>
...
...
@@ -60,8 +79,9 @@
<img
src=
"@/assets/contractRepayment/contract.png"
alt=
""
>
<h2>
{{ item.workflow_desc }}
</h2>
<p>
<img
src=
"@/assets/functionCenter/in@2x.png"
alt=
""
@
click=
"approvalInfo(item, 'done')
"
>
<img
src=
"@/assets/functionCenter/in@2x.png"
alt=
""
@
click=
"approvalInfo(item, 'done')
"
>
</p>
</div>
<div
class=
"center"
>
...
...
@@ -75,10 +95,14 @@
</template>
<
script
>
import
noImg
from
'../../assets/productQuery/none.png'
import
{
Search
}
from
'vant'
import
'vant/lib/search/style'
export
default
{
name
:
'ToDoList'
,
data
()
{
components
:
{
Search
,
},
data
()
{
return
{
selected
:
'todo'
,
searchInput
:
''
,
...
...
@@ -86,32 +110,48 @@ export default {
doneList
:
[],
pageNum
:
1
,
pageNum_1
:
1
,
search_
pageNum
:
1
,
search_
flag
:
false
,
mysetTimeout
:
null
,
}
},
// watch: {},
watch
:
{
selected
(
newVal
,
oldVal
)
{
if
(
newVal
===
'todo'
)
{
this
.
getTodoList
()
}
else
if
(
newVal
===
'done'
)
{
this
.
getDoneList
()
}
},
},
// created () {
// this.getTodoList()
// this.getDoneList()
// },
activated
()
{
activated
()
{
this
.
pageNum
=
1
this
.
pageNum_1
=
1
this
.
getTodoList
()
this
.
getDoneList
()
this
.
search_pageNum
=
1
this
.
search_flag
=
false
if
(
this
.
selected
===
'todo'
)
{
this
.
getTodoList
()
}
else
if
(
this
.
selected
===
'done'
)
{
this
.
getDoneList
()
}
// this.getTodoList()
// this.getDoneList()
},
methods
:
{
// tab切换
isSelected
(
name
)
{
isSelected
(
name
)
{
this
.
selected
=
name
},
searchList
()
{
searchList
()
{
this
.
search_flag
=
true
if
(
this
.
selected
===
'todo'
)
{
this
.
pageNum
=
1
this
.
pageNum
=
0
this
.
todoList
=
[]
}
else
if
(
this
.
selected
===
'done'
)
{
this
.
pageNum_1
=
1
this
.
pageNum_1
=
0
this
.
doneList
=
[]
}
if
(
this
.
mysetTimeout
!==
null
)
{
clearTimeout
(
this
.
mysetTimeout
)
...
...
@@ -119,12 +159,12 @@ export default {
this
.
loadMore
()
},
1000
)
}
else
{
this
.
mysetTimeout
=
setTimeout
(()
=>
{
this
.
mysetTimeout
=
setTimeout
(()
=>
{
this
.
loadMore
()
},
1000
)
}
},
getTodoList
()
{
getTodoList
()
{
this
.
pageNum
=
1
this
.
todoList
=
[]
let
param
=
{
...
...
@@ -149,7 +189,7 @@ export default {
}
})
},
getDoneList
()
{
getDoneList
()
{
this
.
pageNum_1
=
1
this
.
doneList
=
[]
let
param
=
{
...
...
@@ -174,7 +214,7 @@ export default {
}
})
},
loadMore
()
{
loadMore
()
{
let
url
let
param
if
(
this
.
selected
===
'todo'
)
{
...
...
@@ -204,12 +244,16 @@ export default {
let
returnData
=
[]
if
(
res
.
result
===
'S'
)
{
returnData
=
res
.
lists
if
(
returnData
.
length
===
0
)
{
this
.
$refs
.
scroll
.
update
(
true
)
}
else
if
(
returnData
.
length
>
0
&&
returnData
.
length
<
10
)
{
this
.
$refs
.
scroll
.
update
(
true
)
}
else
if
(
returnData
.
length
===
10
)
{
// this.$refs.scroll.update(true)
if
(
!
this
.
search_flag
)
{
if
(
returnData
.
length
===
0
)
{
this
.
$refs
.
scroll
.
update
(
true
)
}
else
if
(
returnData
.
length
>
0
&&
returnData
.
length
<
10
)
{
this
.
$refs
.
scroll
.
update
(
true
)
}
else
if
(
returnData
.
length
===
10
)
{
// this.$refs.scroll.update(true)
}
}
else
{
this
.
search_flag
=
false
}
this
.
showLists
=
returnData
if
(
this
.
selected
===
'todo'
)
{
...
...
@@ -236,7 +280,7 @@ export default {
if
(
routerName
)
{
this
.
$router
.
push
({
name
:
routerName
,
params
:
{
type
:
type
,
...
flow
}
name
:
routerName
,
params
:
{
type
:
type
,
...
flow
}
,
})
}
else
{
hlsPopup
.
showLongCenter
(
'当前app不支持审批工作流'
)
...
...
@@ -308,7 +352,8 @@ export default {
.search {
background-color: #fff;
padding: 8px 12px;
height: 36px;
// padding: 8px 12px;
position: relative;
input {
...
...
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