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
42eddb45
Commit
42eddb45
authored
Mar 24, 2021
by
xiejb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
货主和供应商如果只有一个的逻辑
parent
fee9320e
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
90 additions
and
6 deletions
+90
-6
src/components/SearchGoods.vue
src/components/SearchGoods.vue
+1
-1
src/components/SearchInClient.vue
src/components/SearchInClient.vue
+1
-1
src/components/SearchInSupplier.vue
src/components/SearchInSupplier.vue
+0
-1
src/views/myOrder/components/HighSearch.vue
src/views/myOrder/components/HighSearch.vue
+2
-2
src/views/myOrder/index.vue
src/views/myOrder/index.vue
+86
-1
No files found.
src/components/SearchGoods.vue
View file @
42eddb45
...
...
@@ -106,7 +106,7 @@ export default {
this
.
postDataList
=
[]
this
.
choosedPost
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
customer
))
this
.
checked
=
!
this
.
customer
.
comGoodsId
?
''
:
this
.
customer
.
comGoodsId
console
.
log
(
this
.
checked
)
//
console.log(this.checked)
this
.
currentPage
=
1
this
.
onLoad
()
}
...
...
src/components/SearchInClient.vue
View file @
42eddb45
...
...
@@ -115,7 +115,7 @@ export default {
this
.
postDataList
=
[]
this
.
choosedPost
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
customer
))
this
.
checked
=
!
this
.
customer
.
comPartyId
?
''
:
this
.
customer
.
comPartyId
console
.
log
(
this
.
checked
)
//
console.log(this.checked)
this
.
currentPage
=
1
this
.
onLoad
()
}
...
...
src/components/SearchInSupplier.vue
View file @
42eddb45
...
...
@@ -185,7 +185,6 @@ export default {
}
companyList
.
push
(
removeItem
)
})
console
.
log
(
companyList
)
let
data
=
{
'
list
'
:
[
{
...
...
src/views/myOrder/components/HighSearch.vue
View file @
42eddb45
...
...
@@ -175,7 +175,7 @@ export default {
computed
:
{
// 供应商
supplier
()
{
if
(
this
.
moreSearchInfo
.
supplier
.
org
)
{
if
(
this
.
moreSearchInfo
.
supplier
)
{
return
!
this
.
moreSearchInfo
.
supplier
?
''
:
this
.
moreSearchInfo
.
supplier
.
partyName
}
else
{
return
''
...
...
@@ -360,7 +360,7 @@ export default {
},
// 商品信息拼接
consignorInfoStitching
(
model
)
{
return
model
.
companyname
return
model
.
companyname
+
'
/(
'
+
model
.
erp_userid
[
0
]
+
'
)
'
// return model.comGoodsId + '/(' + model.goodsOpcode + ')' + model.goodsName + '/' + model.goodsDesc + '/' + model.partyName + '/' + model.packageNum + '/' + model.unitName
},
onQuickDateChoose
(
index
,
tag
)
{
...
...
src/views/myOrder/index.vue
View file @
42eddb45
...
...
@@ -32,6 +32,7 @@
<
script
>
import
myOrderList
from
'
./myOrderList.vue
'
import
HighSearch
from
'
./components/HighSearch.vue
'
import
{
getEmployeeOrgQueryList
,
getConsignorSetList
}
from
'
@/api/common
'
import
{
getFormateDate
}
from
'
@/utils/common
'
import
{
bridge
}
from
"
@/utils
"
;
const
allTabsTitle
=
[
...
...
@@ -96,12 +97,96 @@ export default {
window
.
removeEventListener
(
'
popstate
'
,
this
.
onBrowserBack
,
false
)
},
mounted
()
{
this
.
moreSearchShow
=
true
// this.moreSearchShow = true
this
.
getConsignorPostData
()
// this.tabsTitleData()
},
destroyed
()
{
},
methods
:
{
// 查询是否货主为单个
getConsignorPostData
()
{
let
_this
=
this
let
data
=
{
'
attr
'
:
{
'
empid
'
:
this
.
linkInfo
.
userId
},
'
filters
'
:
[],
'
logic
'
:
'
or
'
,
'
sort
'
:
'
desc
'
,
'
orderby
'
:
'
createon
'
,
'
pageNum
'
:
1
,
'
pageSize
'
:
10
}
getConsignorSetList
(
data
).
then
(
rt
=>
{
if
(
rt
.
code
===
200
)
{
// this.postDataList = rt.data.list
if
(
rt
.
data
.
list
.
length
!==
1
)
{
this
.
moreSearchShow
=
true
}
else
if
(
rt
.
data
.
list
.
length
===
1
)
{
this
.
moreSearchInfo
.
consignor
.
push
(
rt
.
data
.
list
[
0
])
this
.
getEmployeeOrgPostData
(
rt
.
data
.
list
[
0
])
}
else
if
(
rt
.
data
.
list
.
length
===
0
)
{
_this
.
$toast
(
'
暂无货主!
'
)
}
}
else
{
_this
.
$toast
(
rt
.
message
)
}
}).
catch
(
e
=>
{
_this
.
$toast
(
'
列表获取失败
'
)
})
},
getEmployeeOrgPostData
(
item
)
{
let
_this
=
this
const
companyList
=
[]
const
removeItem
=
{
'
length
'
:
'
100
'
,
'
attr
'
:
{
'
empid
'
:
this
.
linkInfo
.
userId
+
'
,1
'
,
'
userid
'
:
item
.
erp_userid
[
0
],
'
sysname
'
:
item
.
sysname
,
'
companyname
'
:
item
.
companyname
},
'
dbName
'
:
''
,
'
start
'
:
'
1
'
}
companyList
.
push
(
removeItem
)
// 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
if
(
rt
.
data
.
length
!==
0
&&
rt
.
data
.
length
>
1
)
{
this
.
moreSearchShow
=
true
}
else
if
(
rt
.
data
.
length
===
1
)
{
this
.
moreSearchInfo
.
supplier
=
rt
.
data
[
0
]
}
else
if
(
rt
.
data
.
length
===
0
)
{
this
.
moreSearchShow
=
true
}
}
else
{
_this
.
$toast
(
rt
.
message
)
}
}).
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