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
a77087a0
Commit
a77087a0
authored
Apr 06, 2021
by
xiejb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
高级搜索 时间选择问题
parent
a779c304
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
41 additions
and
20 deletions
+41
-20
src/views/myOrder/components/HighSearchNewDelete.vue
src/views/myOrder/components/HighSearchNewDelete.vue
+2
-2
src/views/myOrder/index.vue
src/views/myOrder/index.vue
+39
-18
No files found.
src/views/myOrder/components/HighSearchNewDelete.vue
View file @
a77087a0
...
...
@@ -552,7 +552,7 @@ export default {
},
// 获取当月的开始与结束日期
getCurrentMonth
()
{
this
.
moreSearchInfo
.
time
.
start
=
this
.
getDay
(
getFormateDate
(
new
Date
(),
'
yyyy-MM-dd
'
),
-
30
)
this
.
moreSearchInfo
.
time
.
start
=
this
.
getDay
(
getFormateDate
(
new
Date
(),
'
yyyy-MM-dd
'
),
-
29
)
this
.
moreSearchInfo
.
time
.
end
=
getFormateDate
(
new
Date
(),
'
yyyy-MM-dd
'
)
// 返回
// return startStop
...
...
@@ -560,7 +560,7 @@ export default {
// 获得当前星期的开始与结束日期
getCurrentWeek
()
{
var
sunday
=
new
Date
()
this
.
moreSearchInfo
.
time
.
start
=
this
.
getDay
(
getFormateDate
(
sunday
,
'
yyyy-MM-dd
'
),
-
7
)
this
.
moreSearchInfo
.
time
.
start
=
this
.
getDay
(
getFormateDate
(
sunday
,
'
yyyy-MM-dd
'
),
-
6
)
this
.
moreSearchInfo
.
time
.
end
=
getFormateDate
(
sunday
,
'
yyyy-MM-dd
'
)
},
// 获取当天的日期
...
...
src/views/myOrder/index.vue
View file @
a77087a0
...
...
@@ -161,29 +161,14 @@ export default {
let
data
=
{
list
:
companyList
}
// let data = {
// 'list': [
// {
// 'length': '1',
// 'attr': {
// 'empid': '199476,1',
// 'userid': '23528',
// 'sysname': 'ERP',
// 'companyname': '上药控股有限公司'
// },
// 'dbName': '',
// 'start': '1'
// }
// ]
// }
getEmployeeOrgQueryList
(
data
).
then
(
rt
=>
{
if
(
rt
.
code
===
200
)
{
this
.
postDataList
=
rt
.
data
//
this.postDataList = rt.data
if
(
rt
.
data
.
length
!==
0
&&
rt
.
data
.
length
>
1
)
{
this
.
moreSearchShow
=
true
}
else
if
(
rt
.
data
.
length
===
1
)
{
this
.
moreSearchInfo
.
supplier
=
rt
.
data
[
0
]
this
.
moreSearchInfo
.
supplier
=
rt
.
data
this
.
getClienPostData
(
item
,
rt
.
data
[
0
])
}
else
if
(
rt
.
data
.
length
===
0
)
{
this
.
moreSearchShow
=
true
}
...
...
@@ -194,6 +179,42 @@ export default {
_this
.
$toast
(
'
列表获取失败
'
)
})
},
// 判断客户是否为一个
getClienPostData
(
consignorModel
,
clienItem
)
{
let
_this
=
this
const
companyList
=
[]
const
removeItem
=
{
'
beforeP
'
:
consignorModel
.
db_source
,
'
middleP
'
:
process
.
env
.
appRealDb
,
'
afterP
'
:
[
clienItem
.
org
],
'
saler
'
:
consignorModel
.
erp_user
,
'
companyname
'
:
consignorModel
.
companyname
,
'
companynameId
'
:
consignorModel
.
id
}
companyList
.
push
(
removeItem
)
let
data
=
{
'
customer
'
:
_this
.
keywords
,
'
list
'
:
companyList
,
'
start
'
:
_this
.
currentPage
,
'
length
'
:
_this
.
pageSize
}
_this
.
loading
=
true
getOrderCustomerSetList
(
data
).
then
(
rt
=>
{
if
(
rt
.
code
===
'
1
'
)
{
if
(
rt
.
data
.
length
!==
0
&&
rt
.
data
.
length
>
1
)
{
this
.
moreSearchShow
=
true
}
else
if
(
rt
.
data
.
length
===
1
)
{
this
.
moreSearchInfo
.
client
=
rt
.
data
}
else
if
(
rt
.
data
.
length
===
0
)
{
this
.
moreSearchShow
=
true
}
}
else
{
_this
.
$toast
(
rt
.
msg
)
}
}).
catch
(
e
=>
{
_this
.
$toast
(
'
列表获取失败
'
)
})
},
// 单个发票点击事件
orderItemAction
(
model
)
{
console
.
log
(
model
)
...
...
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