Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
self-support
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
李俊赕
self-support
Commits
62a8ef21
Commit
62a8ef21
authored
Aug 31, 2021
by
Damon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 【ID1001651】【扳手会小程序-我的-物料选择页面】:点击更多按钮,跳转到的全部合作商页面无数据
parent
6f1d1467
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
6 deletions
+19
-6
document-tag.vue
src/pages/order/document-tag.vue
+17
-6
addParts.vue
src/pages/parts/addParts.vue
+2
-0
No files found.
src/pages/order/document-tag.vue
View file @
62a8ef21
...
@@ -21,6 +21,7 @@
...
@@ -21,6 +21,7 @@
return
{
return
{
labels
:
[],
// 标签列表
labels
:
[],
// 标签列表
selectedId
:
''
,
// 已选中标签的id
selectedId
:
''
,
// 已选中标签的id
classifyId
:
''
,
type
:
'1'
,
// '1': '合作商', '2': '品牌', '9': '物料品牌'
type
:
'1'
,
// '1': '合作商', '2': '品牌', '9': '物料品牌'
};
};
},
},
...
@@ -28,6 +29,9 @@
...
@@ -28,6 +29,9 @@
if
(
e
&&
e
.
selectedId
)
{
// 有已选中标签的id
if
(
e
&&
e
.
selectedId
)
{
// 有已选中标签的id
this
.
selectedId
=
e
.
selectedId
this
.
selectedId
=
e
.
selectedId
}
}
if
(
e
&&
e
.
classifyId
)
{
// 有已选中标签的id
this
.
classifyId
=
e
.
classifyId
}
if
(
e
&&
e
.
categoryId
)
{
// 有品类
if
(
e
&&
e
.
categoryId
)
{
// 有品类
this
.
type
=
'9'
this
.
type
=
'9'
this
.
getBrandList
(
e
.
categoryId
)
this
.
getBrandList
(
e
.
categoryId
)
...
@@ -51,14 +55,14 @@
...
@@ -51,14 +55,14 @@
return
{
return
{
'1'
:
'id'
,
// 合作商
'1'
:
'id'
,
// 合作商
'2'
:
'id'
,
// 品牌
'2'
:
'id'
,
// 品牌
'9'
:
'
brandI
d'
// 物料品牌
'9'
:
'
i
d'
// 物料品牌
}
}
},
},
nameKeys
()
{
nameKeys
()
{
return
{
return
{
'1'
:
'name'
,
// 合作商
'1'
:
'name'
,
// 合作商
'2'
:
'name'
,
// 品牌
'2'
:
'name'
,
// 品牌
'9'
:
'
brandN
ame'
// 物料品牌
'9'
:
'
n
ame'
// 物料品牌
}
}
}
}
},
},
...
@@ -97,10 +101,17 @@
...
@@ -97,10 +101,17 @@
},
},
// 获取物料品牌
// 获取物料品牌
getBrandList
(
categoryId
)
{
getBrandList
(
categoryId
)
{
this
.
$u
.
api
.
getBrandList
({
categoryId
:
categoryId
}).
then
(
res
=>
{
this
.
$u
.
api
.
getBrandList
({
categoryId
:
categoryId
,
classifyId
:
this
.
classifyId
}).
then
(
res
=>
{
if
(
res
.
code
===
200
)
{
if
(
res
.
code
===
200
)
{
this
.
labels
=
res
.
data
||
[]
const
data
=
res
.
data
}
let
lists
if
(
this
.
classifyId
==
1
)
{
lists
=
data
.
partnerCompany
}
else
{
lists
=
data
.
classify
}
this
.
labels
=
lists
||
[]
}
})
})
},
},
}
}
...
...
src/pages/parts/addParts.vue
View file @
62a8ef21
...
@@ -402,6 +402,8 @@ export default {
...
@@ -402,6 +402,8 @@ export default {
'pages/order/document-tag'
+
'pages/order/document-tag'
+
'?categoryId='
+
'?categoryId='
+
this
.
categoryId
+
this
.
categoryId
+
'&classifyId='
+
this
.
classifyId
+
'&selectedId='
+
'&selectedId='
+
this
.
brandId
,
this
.
brandId
,
})
})
...
...
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