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
414aed46
Commit
414aed46
authored
Jun 29, 2021
by
Facius
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
没有品牌显示通用
parent
6c756fb1
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
4 deletions
+16
-4
appliedPartsCell.vue
src/components/parts/appliedPartsCell.vue
+8
-1
spareCell.vue
src/components/parts/spareCell.vue
+5
-1
partsDetail.vue
src/pages/mine/warehouse/partsDetail.vue
+3
-2
No files found.
src/components/parts/appliedPartsCell.vue
View file @
414aed46
...
@@ -17,7 +17,7 @@
...
@@ -17,7 +17,7 @@
<image
class=
"image-view"
v-for=
"(item, index) in images"
:key=
"index"
:src=
"item"
></image>
<image
class=
"image-view"
v-for=
"(item, index) in images"
:key=
"index"
:src=
"item"
></image>
<view
class=
"info-view"
v-if=
"info.items.length == 1"
>
<view
class=
"info-view"
v-if=
"info.items.length == 1"
>
<view
class=
"name-text"
>
{{
info
.
items
[
0
].
name
}}
</view>
<view
class=
"name-text"
>
{{
info
.
items
[
0
].
name
}}
</view>
<view>
{{
info
.
items
[
0
].
categoryName
+
'-'
+
info
.
items
[
0
].
brandName
}}
</view>
<view>
{{
noteText
}}
</view>
</view>
</view>
</view>
</view>
<view
class=
"count-view"
>
共
{{
info
.
items
.
length
}}
种
</view>
<view
class=
"count-view"
>
共
{{
info
.
items
.
length
}}
种
</view>
...
@@ -91,6 +91,13 @@
...
@@ -91,6 +91,13 @@
buttonText
()
{
buttonText
()
{
return
this
.
texts
[
this
.
info
.
status
]
return
this
.
texts
[
this
.
info
.
status
]
},
},
noteText
()
{
if
(
info
.
items
[
0
].
categoryName
||
info
.
items
[
0
].
brandName
)
{
return
(
info
.
items
[
0
].
categoryName
||
'通用'
)
+
'-'
+
(
info
.
items
[
0
].
brandName
||
'通用'
)
}
else
{
return
'通用'
}
},
buttonStyle
()
{
buttonStyle
()
{
return
{
return
{
'height'
:
'104rpx'
,
'height'
:
'104rpx'
,
...
...
src/components/parts/spareCell.vue
View file @
414aed46
...
@@ -50,7 +50,11 @@
...
@@ -50,7 +50,11 @@
},
},
computed
:
{
computed
:
{
remarkText
()
{
remarkText
()
{
return
this
.
item
.
categoryName
+
'-'
+
this
.
item
.
brandName
if
(
this
.
item
.
categoryName
||
this
.
item
.
brandName
)
{
return
(
this
.
item
.
categoryName
||
'通用'
)
+
'-'
+
(
this
.
item
.
brandName
||
'通用'
)
}
else
{
return
'通用'
}
},
},
imageUrl
()
{
imageUrl
()
{
return
this
.
item
.
images
?
process
.
uniEnv
.
systemUrl
.
apiUrl
+
this
.
item
.
images
.
split
(
','
).
shift
()
:
this
.
placeholderImage
return
this
.
item
.
images
?
process
.
uniEnv
.
systemUrl
.
apiUrl
+
this
.
item
.
images
.
split
(
','
).
shift
()
:
this
.
placeholderImage
...
...
src/pages/mine/warehouse/partsDetail.vue
View file @
414aed46
...
@@ -62,7 +62,7 @@
...
@@ -62,7 +62,7 @@
return
{
return
{
info
:
{
info
:
{
items
:
[],
items
:
[],
express
:
[]
,
express
:
{}
,
status
:
'0'
status
:
'0'
},
},
logisticsRecords
:
[],
// 物流
logisticsRecords
:
[],
// 物流
...
@@ -171,6 +171,7 @@
...
@@ -171,6 +171,7 @@
if
(
pages
.
length
>=
2
)
{
if
(
pages
.
length
>=
2
)
{
var
page
=
pages
[
pages
.
length
-
2
];
var
page
=
pages
[
pages
.
length
-
2
];
this
.
info
=
page
.
info
this
.
info
=
page
.
info
this
.
info
.
express
=
this
.
info
.
express
||
{}
}
}
},
},
methods
:
{
methods
:
{
...
...
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