Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
上
上药订单生命周期升级
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
sph
上药订单生命周期升级
Commits
18b9039f
Commit
18b9039f
authored
Mar 31, 2021
by
xiejb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
高级搜索 供应商数据去重
parent
8230a1a8
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
7 deletions
+23
-7
src/components/SearchInSupplier.vue
src/components/SearchInSupplier.vue
+22
-5
src/views/myOrder/components/HighSearchNew.vue
src/views/myOrder/components/HighSearchNew.vue
+1
-2
No files found.
src/components/SearchInSupplier.vue
View file @
18b9039f
...
...
@@ -70,6 +70,7 @@ export default {
currentPage
:
1
,
pageSize
:
10
,
postDataList
:
[],
postDataIdList
:
[],
checked
:
''
,
checkedList
:
[],
choosedPost
:
[]
...
...
@@ -100,6 +101,7 @@ export default {
this
.
postShow
=
val
if
(
val
)
{
this
.
postDataList
=
[]
this
.
postDataIdList
=
[]
this
.
checkedList
=
[]
this
.
choosedPost
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
customer
))
// this.checked = !this.customer.comPartyId ? '' : this.customer.comPartyId
...
...
@@ -221,15 +223,16 @@ export default {
getEmployeeOrgQueryList
(
data
).
then
(
rt
=>
{
if
(
rt
.
code
===
200
)
{
if
(
_this
.
currentPage
===
1
)
{
_this
.
searchNum
=
rt
.
data
.
length
+
''
this
.
postData
List
=
[]
_this
.
postDataList
=
[]
_this
.
postDataId
List
=
[]
}
if
(
this
.
isRefreshing
)
{
this
.
postDataList
=
rt
.
data
if
(
_
this
.
isRefreshing
)
{
_this
.
postDataList
=
_this
.
deleteRepeatAction
(
rt
.
data
)
}
else
if
(
!!
rt
.
data
||
rt
.
data
.
length
>
0
)
{
this
.
postDataList
=
this
.
postDataList
.
concat
(
rt
.
data
)
_this
.
postDataList
=
_this
.
postDataList
.
concat
(
_this
.
deleteRepeatAction
(
rt
.
data
)
)
}
_this
.
searchNum
=
_this
.
postDataList
.
length
+
''
// _this.postDataListSetAction(rt.data)
// 重置刷新提示
_this
.
isRefreshing
=
false
...
...
@@ -259,6 +262,20 @@ export default {
_this
.
finished
=
true
})
},
// 数据去重
deleteRepeatAction
(
httpArray
)
{
const
array
=
[]
httpArray
.
forEach
(
item
=>
{
const
removeItem
=
item
if
(
this
.
postDataIdList
.
indexOf
(
item
.
org
)
>
-
1
)
{
}
else
{
this
.
postDataIdList
.
push
(
item
.
org
)
array
.
push
(
item
)
}
})
return
array
},
/// 判断数值是否为空
isJudgeStrNull
(
val
)
{
if
(
val
!==
null
&&
val
!==
undefined
&&
val
!==
''
)
{
...
...
src/views/myOrder/components/HighSearchNew.vue
View file @
18b9039f
...
...
@@ -596,7 +596,6 @@ export default {
font-size
:
14
PX
;
/
deep
/
.van-cell
{
padding
:
5px
0px
;
}
/
deep
/ .
van-cell
:
:
after
{
position
:
fixed
;
...
...
@@ -611,7 +610,7 @@ export default {
color
:
#1989fa
;
}
.title
{
margin
:
auto
margin
:
5px
auto
;
}
.inputInfo
{
color
:
#666666
;
...
...
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