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
a1eaea6f
Commit
a1eaea6f
authored
Mar 25, 2021
by
xiejb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
订单列表高级搜索 各个条件联调
parent
874f144f
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
72 additions
and
30 deletions
+72
-30
src/components/SearchGoods.vue
src/components/SearchGoods.vue
+13
-3
src/components/SearchInClient.vue
src/components/SearchInClient.vue
+12
-3
src/components/SearchInConsignor.vue
src/components/SearchInConsignor.vue
+25
-5
src/components/SearchInSupplier.vue
src/components/SearchInSupplier.vue
+22
-19
No files found.
src/components/SearchGoods.vue
View file @
a1eaea6f
...
@@ -178,14 +178,24 @@ export default {
...
@@ -178,14 +178,24 @@ export default {
let
_this
=
this
let
_this
=
this
const
companyList
=
[]
const
companyList
=
[]
_this
.
consignor
.
forEach
(
item
=>
{
_this
.
consignor
.
forEach
(
item
=>
{
console
.
log
(
item
)
const
removeItem
=
{
const
removeItem
=
{
'
beforeP
'
:
'
erp_test_shaphar
'
,
'
beforeP
'
:
item
.
db_source
,
'
middleP
'
:
process
.
env
.
appRealDb
,
'
middleP
'
:
process
.
env
.
appRealDb
,
'
afterP
'
:
'
200
'
,
'
afterP
'
:
this
.
supplier
.
org
,
'
saler
'
:
'
22998
'
'
saler
'
:
item
.
erpUserid
}
}
companyList
.
push
(
removeItem
)
companyList
.
push
(
removeItem
)
})
})
// _this.consignor.forEach(item => {
// const removeItem = {
// 'beforeP': 'erp_test_shaphar',
// 'middleP': process.env.appRealDb,
// 'afterP': '200',
// 'saler': '22998'
// }
// companyList.push(removeItem)
// })
let
data
=
{
let
data
=
{
'
goods
'
:
_this
.
keywords
,
'
goods
'
:
_this
.
keywords
,
'
list
'
:
companyList
,
'
list
'
:
companyList
,
...
...
src/components/SearchInClient.vue
View file @
a1eaea6f
...
@@ -188,13 +188,22 @@ export default {
...
@@ -188,13 +188,22 @@ export default {
const
companyList
=
[]
const
companyList
=
[]
_this
.
consignor
.
forEach
(
item
=>
{
_this
.
consignor
.
forEach
(
item
=>
{
const
removeItem
=
{
const
removeItem
=
{
'
beforeP
'
:
'
erp_test_shaphar
'
,
'
beforeP
'
:
item
.
db_source
,
'
middleP
'
:
process
.
env
.
appRealDb
,
'
middleP
'
:
process
.
env
.
appRealDb
,
'
afterP
'
:
'
508
'
,
'
afterP
'
:
this
.
supplier
.
org
,
'
saler
'
:
'
23528
'
'
saler
'
:
item
.
erpUserid
}
}
companyList
.
push
(
removeItem
)
companyList
.
push
(
removeItem
)
})
})
// _this.consignor.forEach(item => {
// const removeItem = {
// 'beforeP': 'erp_test_shaphar',
// 'middleP': process.env.appRealDb,
// 'afterP': '508',
// 'saler': '23528'
// }
// companyList.push(removeItem)
// })
let
data
=
{
let
data
=
{
'
customer
'
:
_this
.
keywords
,
'
customer
'
:
_this
.
keywords
,
'
list
'
:
companyList
,
'
list
'
:
companyList
,
...
...
src/components/SearchInConsignor.vue
View file @
a1eaea6f
...
@@ -135,7 +135,6 @@ export default {
...
@@ -135,7 +135,6 @@ export default {
methods
:
{
methods
:
{
/// 标题拼接
<!--
药厂码
/
(
SAP
码)名称
-->
/// 标题拼接
<!--
药厂码
/
(
SAP
码)名称
-->
titleInitial
(
model
)
{
titleInitial
(
model
)
{
// let titleStr = model.comGoodsId + '/(' + model.goodsOpcode + ')' + model.goodsName + '/' + model.goodsDesc + '/' + model.partyName + '/' + model.packageNum + '/' + model.unitName
return
model
.
companyname
+
'
/(
'
+
model
.
erp_userid
[
0
]
+
'
)
'
return
model
.
companyname
+
'
/(
'
+
model
.
erp_userid
[
0
]
+
'
)
'
},
},
onSearch
()
{
onSearch
()
{
...
@@ -216,10 +215,11 @@ export default {
...
@@ -216,10 +215,11 @@ export default {
this
.
postDataList
=
[]
this
.
postDataList
=
[]
}
}
if
(
this
.
isRefreshing
)
{
if
(
this
.
isRefreshing
)
{
this
.
postDataList
=
rt
.
data
.
list
console
.
log
(
'
111111
'
)
}
this
.
postDataList
=
this
.
postDataListAction
(
rt
.
data
.
list
)
else
if
(
!!
rt
.
data
.
list
||
rt
.
data
.
list
.
length
>
0
)
{
}
else
if
(
rt
.
data
.
list
||
rt
.
data
.
list
.
length
>
0
)
{
this
.
postDataList
=
this
.
postDataList
.
concat
(
rt
.
data
.
list
)
this
.
postDataList
=
this
.
postDataList
.
concat
(
this
.
postDataListAction
(
rt
.
data
.
list
))
console
.
log
(
'
222222
'
)
}
}
// _this.postDataListSetAction(rt.data)
// _this.postDataListSetAction(rt.data)
// 重置刷新提示
// 重置刷新提示
...
@@ -256,6 +256,26 @@ export default {
...
@@ -256,6 +256,26 @@ export default {
return
true
return
true
}
}
return
false
return
false
},
postDataListAction
(
httpList
)
{
const
array
=
[]
httpList
.
forEach
(
item
=>
{
const
removeItem
=
item
removeItem
.
erpUserid
=
item
.
erp_userid
[
0
]
array
.
push
(
removeItem
)
})
// let array = []
// for (let i = 0; i
<
httpList
.
length
;
i
++
)
{
// let item = httpList[i]
// for (let index = 0; index
<
item
.
erp_userid
.
length
;
index
++
)
{
// let userid = item.erp_userid[index]
// let model = item
// model.erpUserid = userid
// model.cellId = item.id + userid
// array.push(model)
// }
// }
return
httpList
}
}
}
}
}
}
...
...
src/components/SearchInSupplier.vue
View file @
a1eaea6f
...
@@ -173,33 +173,36 @@ export default {
...
@@ -173,33 +173,36 @@ export default {
const
companyList
=
[]
const
companyList
=
[]
_this
.
consignor
.
forEach
(
item
=>
{
_this
.
consignor
.
forEach
(
item
=>
{
const
removeItem
=
{
const
removeItem
=
{
'
length
'
:
'
100
'
,
'
length
'
:
this
.
pageSize
,
'
attr
'
:
{
'
attr
'
:
{
'
empid
'
:
this
.
linkInfo
.
userId
+
'
,1
'
,
'
empid
'
:
this
.
linkInfo
.
userId
+
'
,1
'
,
'
userid
'
:
'
23528
'
,
'
userid
'
:
item
.
erpUserid
,
'
sysname
'
:
item
.
sysname
,
'
sysname
'
:
item
.
sysname
,
'
companyname
'
:
item
.
companyname
'
companyname
'
:
item
.
companyname
},
},
'
dbName
'
:
''
,
'
dbName
'
:
''
,
'
start
'
:
'
1
'
'
start
'
:
this
.
currentPage
}
}
companyList
.
push
(
removeItem
)
companyList
.
push
(
removeItem
)
})
})
let
data
=
{
let
data
=
{
'
list
'
:
[
'
list
'
:
companyList
{
'
length
'
:
'
100
'
,
'
attr
'
:
{
'
empid
'
:
'
199476,1
'
,
'
userid
'
:
'
23528
'
,
'
sysname
'
:
'
ERP
'
,
'
companyname
'
:
'
上药控股有限公司
'
},
'
dbName
'
:
''
,
'
start
'
:
'
1
'
}
]
}
}
// let data = {
// 'list': [
// {
// 'length': '100',
// 'attr': {
// 'empid': '199476,1',
// 'userid': '23528',
// 'sysname': 'ERP',
// 'companyname': '上药控股有限公司'
// },
// 'dbName': '',
// 'start': '1'
// }
// ]
// }
getEmployeeOrgQueryList
(
data
).
then
(
rt
=>
{
getEmployeeOrgQueryList
(
data
).
then
(
rt
=>
{
if
(
rt
.
code
===
200
)
{
if
(
rt
.
code
===
200
)
{
if
(
_this
.
currentPage
===
1
)
{
if
(
_this
.
currentPage
===
1
)
{
...
@@ -218,12 +221,12 @@ export default {
...
@@ -218,12 +221,12 @@ export default {
// 重置加载更多提示
// 重置加载更多提示
_this
.
loading
=
false
_this
.
loading
=
false
// 若当前加载的页数没有满足每页的数量代表完全加载
// 若当前加载的页数没有满足每页的数量代表完全加载
//
if (rt.data.length
<
10
)
{
if
(
rt
.
data
.
length
<
10
)
{
_this
.
finished
=
true
_this
.
finished
=
true
//
} else {
}
else
{
// 加载成功后下一页自增1
// 加载成功后下一页自增1
_this
.
currentPage
++
_this
.
currentPage
++
//
}
}
}
else
{
}
else
{
_this
.
$toast
(
rt
.
message
)
_this
.
$toast
(
rt
.
message
)
// _this.$toast('列表获取失败')
// _this.$toast('列表获取失败')
...
...
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