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
04911744
Commit
04911744
authored
Jun 28, 2021
by
Facius
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化
parent
e59d6a50
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
65 additions
and
30 deletions
+65
-30
appliedPartsCell.vue
src/components/parts/appliedPartsCell.vue
+6
-4
spareCell.vue
src/components/parts/spareCell.vue
+1
-1
express.vue
src/pages/mine/warehouse/express.vue
+33
-8
index.vue
src/pages/mine/warehouse/index.vue
+1
-1
partsDetail.vue
src/pages/mine/warehouse/partsDetail.vue
+14
-12
spare.vue
src/pages/mine/warehouse/spare.vue
+10
-4
No files found.
src/components/parts/appliedPartsCell.vue
View file @
04911744
...
@@ -3,9 +3,9 @@
...
@@ -3,9 +3,9 @@
<view
class=
"return-cell"
@
click=
"handleClick"
>
<view
class=
"return-cell"
@
click=
"handleClick"
>
<view
class=
"title-view"
>
<view
class=
"title-view"
>
<text
class=
"title-text"
:style=
"
{'color': titleColor}">
{{
title
}}
</text>
<text
class=
"title-text"
:style=
"
{'color': titleColor}">
{{
title
}}
</text>
<view
class=
"express-view"
>
<view
class=
"express-view"
@
click
.
stop=
"$u.throttle(handleClickExpress, 500)"
>
<text>
物流单号:
</text>
<text>
物流单号:
</text>
<view
class=
"order-file-right"
@
click=
"$u.throttle(handleClickExpress, 500)"
>
<view
class=
"order-file-right"
>
<text>
{{
info
.
express
.
number
}}
</text>
<text>
{{
info
.
express
.
number
}}
</text>
<u-icon
name=
"arrow-right"
></u-icon>
<u-icon
name=
"arrow-right"
></u-icon>
</view>
</view>
...
@@ -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
.
categoryName
+
'-'
+
info
.
brandName
}}
</view>
<view>
{{
info
.
items
[
0
].
categoryName
+
'-'
+
info
.
items
[
0
]
.
brandName
}}
</view>
</view>
</view>
</view>
</view>
<view
class=
"count-view"
>
共
{{
info
.
items
.
length
}}
种
</view>
<view
class=
"count-view"
>
共
{{
info
.
items
.
length
}}
种
</view>
...
@@ -166,13 +166,15 @@
...
@@ -166,13 +166,15 @@
},
},
methods
:
{
methods
:
{
handleClick
()
{
handleClick
()
{
console
.
log
(
'--handleClick----'
)
this
.
$emit
(
'action'
,
this
.
info
)
this
.
$emit
(
'action'
,
this
.
info
)
},
},
handleOperate
()
{
handleOperate
()
{
this
.
$emit
(
'operate'
,
this
.
info
.
id
,
this
.
buttonOperateType
,
this
.
willStatus
)
this
.
$emit
(
'operate'
,
this
.
info
.
id
,
this
.
buttonOperateType
,
this
.
willStatus
)
},
},
handleClickExpress
()
{
handleClickExpress
()
{
this
.
$emit
(
'express'
,
this
.
info
.
id
)
console
.
log
(
'--handleClickExpress----'
)
this
.
$emit
(
'express'
,
this
.
info
)
}
}
}
}
}
}
...
...
src/components/parts/spareCell.vue
View file @
04911744
...
@@ -44,7 +44,7 @@
...
@@ -44,7 +44,7 @@
},
},
computed
:
{
computed
:
{
remarkText
()
{
remarkText
()
{
return
this
.
noteText
||
this
.
item
.
categoryName
+
'-'
+
this
.
item
.
brandName
return
this
.
item
.
categoryName
+
'-'
+
this
.
item
.
brandName
},
},
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/express.vue
View file @
04911744
...
@@ -5,8 +5,9 @@
...
@@ -5,8 +5,9 @@
</u-navbar>
</u-navbar>
<view
class=
"content-view"
>
<view
class=
"content-view"
>
<view
class=
"contacts-view"
>
<view
class=
"contacts-view"
>
<view>
<view
class=
"contacts-left-view"
>
<image
class=
"image-view"
:src=
"imageUrl"
></image>
<image
class=
"image-view"
:src=
"imageUrl"
></image>
<view
class=
"total-view"
>
共
{{
total
}}
件
</view>
</view>
</view>
<view
class=
"right-view"
>
<view
class=
"right-view"
>
<view
class=
"title-view"
>
{{
title
}}
</view>
<view
class=
"title-view"
>
{{
title
}}
</view>
...
@@ -73,6 +74,14 @@
...
@@ -73,6 +74,14 @@
imageUrl
()
{
imageUrl
()
{
let
item
=
this
.
info
.
items
[
0
]
||
{}
let
item
=
this
.
info
.
items
[
0
]
||
{}
return
item
.
images
?
item
.
images
.
split
(
','
).
shift
()
:
this
.
placeholderImage
return
item
.
images
?
item
.
images
.
split
(
','
).
shift
()
:
this
.
placeholderImage
},
total
()
{
// 合计
var
i
=
0
for
(
var
item
of
this
.
info
.
items
)
{
i
+=
item
.
quantity
}
return
i
},
},
titleColor
()
{
titleColor
()
{
switch
(
String
(
this
.
info
.
status
))
{
switch
(
String
(
this
.
info
.
status
))
{
...
@@ -93,7 +102,7 @@
...
@@ -93,7 +102,7 @@
return
i
return
i
},
},
placeholderImage
()
{
placeholderImage
()
{
return
process
.
uniEnv
.
qn_base_url
+
'
logo
.png'
return
process
.
uniEnv
.
qn_base_url
+
'
morentupian
.png'
},
},
},
},
onLoad
(
e
)
{
onLoad
(
e
)
{
...
@@ -208,11 +217,27 @@
...
@@ -208,11 +217,27 @@
align-items
:
flex-start
;
align-items
:
flex-start
;
background-color
:
#FFFFFF
;
background-color
:
#FFFFFF
;
border-radius
:
12rpx
;
border-radius
:
12rpx
;
.contacts-left-view
{
.image-view
{
position
:
relative
;
width
:
120rpx
;
.image-view
{
height
:
120rpx
;
width
:
120rpx
;
border-radius
:
12rpx
;
height
:
120rpx
;
border-radius
:
12rpx
;
position
:
relative
;
}
.total-view
{
position
:
absolute
;
height
:
32rpx
;
border-radius
:
16rpx
;
font-size
:
20rpx
;
color
:
#FFFFFF
;
background-color
:
rgba
(
0
,
0
,
0
,
0
.5
);
bottom
:
10rpx
;
width
:
100rpx
;
text-align
:
center
;
margin-left
:
10rpx
;
line-height
:
32rpx
;
}
}
}
.right-view
{
.right-view
{
...
...
src/pages/mine/warehouse/index.vue
View file @
04911744
...
@@ -197,7 +197,7 @@
...
@@ -197,7 +197,7 @@
},
},
handleClickCell
(
info
)
{
handleClickCell
(
info
)
{
this
.
setPageInfo
(
info
)
this
.
setPageInfo
(
info
)
uni
.
navigateTo
({
uni
.
navigateTo
({
url
:
'pages/mine/warehouse/partsDetail'
url
:
'pages/mine/warehouse/partsDetail'
})
})
...
...
src/pages/mine/warehouse/partsDetail.vue
View file @
04911744
...
@@ -11,7 +11,7 @@
...
@@ -11,7 +11,7 @@
</view>
</view>
<view
class=
"content-view"
>
<view
class=
"content-view"
>
<view
class=
"contacts-view"
>
<view
class=
"contacts-view"
>
<
view
class=
"image-view"
></view
>
<
image
class=
"image-view"
:src=
"shouhuodizhiImage"
></image
>
<view
class=
"right-view"
>
<view
class=
"right-view"
>
<view
class=
"contacts-top"
>
<view
class=
"contacts-top"
>
<text>
{{
info
.
express
.
name
}}
</text>
<text>
{{
info
.
express
.
name
}}
</text>
...
@@ -92,12 +92,12 @@
...
@@ -92,12 +92,12 @@
},
},
titles
()
{
titles
()
{
return
{
return
{
'1'
:
'待审核'
,
'1'
:
'待审核'
,
'10'
:
'待发货'
,
'10'
:
'待发货'
,
'15'
:
'代签收'
,
'15'
:
'代签收'
,
'20'
:
'已签收'
,
'20'
:
'已签收'
,
'-
1'
:
'审核未通过'
,
'-
2'
:
'审核未通过'
,
'1'
:
'已取消'
'
-
1'
:
'已取消'
}
}
},
},
total
()
{
// 合计
total
()
{
// 合计
...
@@ -109,7 +109,10 @@
...
@@ -109,7 +109,10 @@
return
i
return
i
},
},
placeholderImage
()
{
placeholderImage
()
{
return
process
.
uniEnv
.
qn_base_url
+
'logo.png'
return
process
.
uniEnv
.
qn_base_url
+
'morentupian.png'
},
shouhuodizhiImage
()
{
return
process
.
uniEnv
.
qn_base_url
+
'shouhuodizhi.png'
},
},
customStyle
()
{
customStyle
()
{
return
{
return
{
...
@@ -123,8 +126,9 @@
...
@@ -123,8 +126,9 @@
detail
()
{
// 详情
detail
()
{
// 详情
return
{
return
{
'orderNumber'
:
this
.
info
.
orderNumber
,
'orderNumber'
:
this
.
info
.
orderNumber
,
'createTime'
:
this
.
info
.
createTime
,
'createTime'
:
this
.
info
.
createTime
?
this
.
$u
.
timeFormat
(
this
.
info
.
createTime
,
'yyyy.mm.dd hh:MM:ss'
)
:
''
,
'deliveryTime'
:
this
.
info
.
express
.
deliveryTime
,
'deliveryTime'
:
this
.
info
.
express
.
deliveryTime
?
this
.
$u
.
timeFormat
(
this
.
info
.
express
.
deliveryTime
,
'yyyy.mm.dd hh:MM:ss'
)
:
''
,
'applyRemark'
:
this
.
info
.
applyRemark
||
''
,
}
}
},
},
detailKey
()
{
// 详情
detailKey
()
{
// 详情
...
@@ -271,8 +275,6 @@
...
@@ -271,8 +275,6 @@
.image-view
{
.image-view
{
width
:
72rpx
;
width
:
72rpx
;
height
:
72rpx
;
height
:
72rpx
;
background-color
:
#2272FF
;
border-radius
:
36rpx
;
}
}
.right-view
{
.right-view
{
...
...
src/pages/mine/warehouse/spare.vue
View file @
04911744
...
@@ -26,8 +26,8 @@
...
@@ -26,8 +26,8 @@
</view>
</view>
<template
v-else
>
<template
v-else
>
<view
class=
"list-item"
v-for=
"(item, index) in partsList"
:key=
"item.id"
>
<view
class=
"list-item"
v-for=
"(item, index) in partsList"
:key=
"item.id"
>
<SpareCell
:item=
"item"
:
noteText=
"noteText"
:
showChecked=
"showBounce"
<SpareCell
:item=
"item"
:showChecked=
"showBounce"
@
change=
"handleChange(index)"
/>
@
change=
"handleChange(index)"
@
numChange=
"handleNumChange($event, index)"
/>
</view>
</view>
<view
class=
"load-more-view"
>
<view
class=
"load-more-view"
>
<u-loadmore
v-show=
"partsList.length > 0"
status=
"nomore"
bgColor=
"#F4F5F7"
>
<u-loadmore
v-show=
"partsList.length > 0"
status=
"nomore"
bgColor=
"#F4F5F7"
>
...
@@ -117,7 +117,7 @@
...
@@ -117,7 +117,7 @@
}
}
},
},
customStyle
()
{
customStyle
()
{
return
'background-color: #F4F5F7;padding: 0;'
return
'background-color: #F4F5F7;padding: 0
rpx
;'
},
},
searchButtonText
()
{
searchButtonText
()
{
return
this
.
searchedKeyword
==
this
.
keyword
&&
this
.
keyword
?
'取消'
:
'搜索'
return
this
.
searchedKeyword
==
this
.
keyword
&&
this
.
keyword
?
'取消'
:
'搜索'
...
@@ -137,7 +137,10 @@
...
@@ -137,7 +137,10 @@
this
.
searchedKeyword
=
this
.
keyword
this
.
searchedKeyword
=
this
.
keyword
this
.
$u
.
api
.
reserveList
(
param
).
then
((
res
)
=>
{
this
.
$u
.
api
.
reserveList
(
param
).
then
((
res
)
=>
{
if
(
res
.
code
==
200
)
{
if
(
res
.
code
==
200
)
{
for
(
var
item
of
res
.
data
)
{
item
.
max
=
item
.
quantity
}
this
.
partsList
=
[]
this
.
partsList
=
[]
let
list
=
res
.
data
||
[]
let
list
=
res
.
data
||
[]
for
(
var
item
of
list
)
{
for
(
var
item
of
list
)
{
...
@@ -179,6 +182,9 @@
...
@@ -179,6 +182,9 @@
},
},
handleChange
(
index
)
{
handleChange
(
index
)
{
this
.
partsList
[
index
].
selected
=
!
this
.
partsList
[
index
].
selected
this
.
partsList
[
index
].
selected
=
!
this
.
partsList
[
index
].
selected
},
handleNumChange
(
value
,
index
)
{
this
.
partsList
[
index
].
quantity
=
value
},
},
handleSubmit
()
{
handleSubmit
()
{
const
getSelected
=
(
element
)
=>
{
const
getSelected
=
(
element
)
=>
{
...
...
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