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
c88cd3e4
Commit
c88cd3e4
authored
Jun 29, 2021
by
Morson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 页面UI修改调整,接口对接
parent
e86b0f0d
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
37 additions
and
52 deletions
+37
-52
addSite.vue
src/pages/mine/address/addSite.vue
+0
-7
express.vue
src/pages/mine/warehouse/express.vue
+6
-3
partsDetail.vue
src/pages/mine/warehouse/partsDetail.vue
+15
-13
records.vue
src/pages/mine/warehouse/records.vue
+1
-25
return.vue
src/pages/mine/warehouse/return.vue
+1
-1
addParts.vue
src/pages/parts/addParts.vue
+1
-0
application.vue
src/pages/parts/application.vue
+3
-0
nodes.vue
src/pages/parts/nodes.vue
+6
-0
returnParts.vue
src/pages/parts/returnParts.vue
+4
-3
No files found.
src/pages/mine/address/addSite.vue
View file @
c88cd3e4
...
@@ -31,13 +31,6 @@
...
@@ -31,13 +31,6 @@
<view
class=
"bottom"
>
<view
class=
"bottom"
>
<button
class=
"btn, bottom-btn"
v-if=
"siteType=='select'"
@
click=
"$u.throttle(commitSite, 500)"
><text
class=
"button-text"
>
提交
</text></button>
<button
class=
"btn, bottom-btn"
v-if=
"siteType=='select'"
@
click=
"$u.throttle(commitSite, 500)"
><text
class=
"button-text"
>
提交
</text></button>
<button
class=
"btn, bottom-btn"
v-else
@
click=
"show = true"
><text
class=
"button-text"
>
保存
</text></button>
<button
class=
"btn, bottom-btn"
v-else
@
click=
"show = true"
><text
class=
"button-text"
>
保存
</text></button>
<!--
<view
class=
"default"
>
<view
class=
"left"
>
<view
class=
"set"
>
设置默认地址
</view>
<view
class=
"tips"
>
提醒:每次下单会默认推荐该地址
</view>
</view>
<view
class=
"right"
><switch
color=
"red"
@
change=
"setDefault"
/></view>
</view>
-->
</view>
</view>
<u-picker
mode=
"region"
v-model=
"showPicker"
:default-region=
"region"
@
confirm=
"confirmRegion"
/>
<u-picker
mode=
"region"
v-model=
"showPicker"
:default-region=
"region"
@
confirm=
"confirmRegion"
/>
<u-popup
border-radius=
"12"
width=
"690"
height=
"520"
v-model=
"show"
mode=
"center"
>
<u-popup
border-radius=
"12"
width=
"690"
height=
"520"
v-model=
"show"
mode=
"center"
>
...
...
src/pages/mine/warehouse/express.vue
View file @
c88cd3e4
...
@@ -11,14 +11,14 @@
...
@@ -11,14 +11,14 @@
</view>
</view>
<view
class=
"right-view"
>
<view
class=
"right-view"
>
<view
class=
"title-view"
>
{{
title
}}
</view>
<view
class=
"title-view"
>
{{
title
}}
</view>
<view>
{{
'物流公司:'
+
info
.
express
.
com
}}
</view>
<view>
{{
'物流公司:'
+
(
info
.
express
.
com
||
'--'
)
}}
</view>
<view
class=
"number-view"
>
<view
class=
"number-view"
>
<text>
{{
'物流单号:'
+
info
.
express
.
number
}}
</text>
<text>
{{
'物流单号:'
+
(
info
.
express
.
number
||
'--'
)
}}
</text>
<text
class=
"copy-view"
@
click=
"$u.throttle(handleClick, 500)"
>
复制
</text>
<text
class=
"copy-view"
@
click=
"$u.throttle(handleClick, 500)"
>
复制
</text>
</view>
</view>
</view>
</view>
</view>
</view>
<view
class=
"record-view"
>
<view
class=
"record-view"
v-if=
"hasRecords"
>
<view
class=
"express-record-list"
>
<view
class=
"express-record-list"
>
<view
class=
"dashed-line-view"
></view>
<view
class=
"dashed-line-view"
></view>
<view
class=
"express-list"
>
<view
class=
"express-list"
>
...
@@ -71,6 +71,9 @@
...
@@ -71,6 +71,9 @@
'1'
:
'已取消'
'1'
:
'已取消'
}
}
},
},
hasRecords
()
{
return
this
.
$u
.
test
.
isEmpty
(
this
.
logisticsRecords
)
?
false
:
true
},
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
...
...
src/pages/mine/warehouse/partsDetail.vue
View file @
c88cd3e4
...
@@ -4,14 +4,14 @@
...
@@ -4,14 +4,14 @@
</u-navbar>
</u-navbar>
<view
class=
"title-text"
>
<view
class=
"title-text"
>
<text>
{{
title
}}
</text>
<text>
{{
title
}}
</text>
<view
v-show=
"
has
Express"
class=
"express-view"
<view
v-show=
"
show
Express"
class=
"express-view"
@
click=
"$u.throttle(handleClickExpress, 500)"
>
@
click=
"$u.throttle(handleClickExpress, 500)"
>
<text>
查看物流信息
</text>
<text>
查看物流信息
</text>
<u-icon
name=
"arrow-right"
></u-icon>
<u-icon
name=
"arrow-right"
></u-icon>
</view>
</view>
</view>
</view>
<view
class=
"content-view"
>
<view
class=
"content-view"
>
<view
class=
"contacts-view"
>
<view
class=
"contacts-view"
v-if=
"hasExpress"
>
<image
class=
"image-view"
:src=
"shouhuodizhiImage"
></image>
<image
class=
"image-view"
:src=
"shouhuodizhiImage"
></image>
<view
class=
"right-view"
>
<view
class=
"right-view"
>
<view
class=
"contacts-top"
>
<view
class=
"contacts-top"
>
...
@@ -29,14 +29,16 @@
...
@@ -29,14 +29,16 @@
</view>
</view>
<view
class=
"line-view"
></view>
<view
class=
"line-view"
></view>
<view
class=
"detail-info-view"
>
<view
class=
"detail-info-view"
>
<view
v-for=
"(value, key) in detailKey"
:key=
"key"
<view
v-for=
"(value, key) in detailKey"
:key=
"key"
>
class=
"info-item"
v-show=
"showInfoItem"
>
<view
class=
"info-item"
v-if=
"detail[key]"
>
<view
class=
"detail-left-view"
>
<view
class=
"detail-left-view"
>
<text>
{{
value
}}
</text>
<text>
{{
value
}}
</text>
<text
@
longpress=
"handleLongpress(key, detail[key] )"
>
{{
detail
[
key
]
}}
</text>
<text
@
longpress=
"handleLongpress(key, detail[key])"
>
{{
detail
[
key
]
}}
</text>
</view>
<text
class=
"copy-view"
v-if=
"key == 'orderNumber'"
@
click=
"$u.throttle(handleClickCopy, 500)"
>
复制
</text>
</view>
</view>
<text
class=
"copy-view"
v-if=
"key == 'orderNumber'"
@
click=
"$u.throttle(handleClickCopy, 500)"
>
复制
</text>
</view>
</view>
</view>
</view>
</view>
</view>
...
@@ -86,10 +88,10 @@
...
@@ -86,10 +88,10 @@
return
this
.
texts
[
this
.
info
.
status
]
return
this
.
texts
[
this
.
info
.
status
]
},
},
hasExpress
()
{
hasExpress
()
{
if
(
this
.
$u
.
test
.
isEmpty
(
this
.
info
.
express
.
number
))
{
return
this
.
$u
.
test
.
isEmpty
(
this
.
info
.
express
)
?
false
:
true
return
false
},
}
showExpress
()
{
return
true
return
t
his
.
$u
.
test
.
isEmpty
(
this
.
info
.
express
.
number
)
?
false
:
t
rue
},
},
buttonStyle
()
{
buttonStyle
()
{
return
{
return
{
...
...
src/pages/mine/warehouse/records.vue
View file @
c88cd3e4
...
@@ -2,23 +2,7 @@
...
@@ -2,23 +2,7 @@
<view
class=
"ware-wrap"
>
<view
class=
"ware-wrap"
>
<u-navbar
back-icon-color=
"#333333"
background=
"#FFFFFF"
title=
"出库记录"
titleColor=
"#333333"
<u-navbar
back-icon-color=
"#333333"
background=
"#FFFFFF"
title=
"出库记录"
titleColor=
"#333333"
:border-bottom=
"false"
title-bold
></u-navbar>
:border-bottom=
"false"
title-bold
></u-navbar>
<!--
<view
class=
"content"
>
<view
class=
"panel"
>
<view
class=
"panel"
>
<view
class=
"title"
>
物料明细
</view>
<view
class=
"item-table"
>
<view
class=
"item-header"
>
<view>
物料名称
</view>
<view>
库存数量
</view>
</view>
<u-divider
half-width=
"315"
border-color=
"#F4F5F7"
height=
"2"
></u-divider>
<view
class=
"item-row"
v-for=
"(item, index) in details"
:key=
"index"
>
<view
class=
"width-504 break"
>
{{
item
.
skuName
}}
</view>
<view
class=
"width-106 center"
>
{{
item
.
systemStock
}}
</view>
</view>
</view>
</view>
-->
<view
class=
"panel"
>
<!--
<view
class=
"title"
>
操作记录
</view>
-->
<view
class=
"item-table"
>
<view
class=
"item-table"
>
<view
class=
"item-header"
>
<view
class=
"item-header"
>
<view
class=
"width-132"
>
订单编号
</view>
<view
class=
"width-132"
>
订单编号
</view>
...
@@ -50,7 +34,7 @@
...
@@ -50,7 +34,7 @@
total
:
100
,
total
:
100
,
search
:
{
search
:
{
pageNumber
:
0
,
pageNumber
:
0
,
pageSize
:
2
0
,
pageSize
:
5
0
,
},
},
};
};
},
},
...
@@ -68,16 +52,8 @@
...
@@ -68,16 +52,8 @@
methods
:
{
methods
:
{
getData
()
{
getData
()
{
let
self
=
this
let
self
=
this
// self.initDetails()
self
.
loadAccess
()
self
.
loadAccess
()
},
},
// async initDetails() {
// let self = this
// let res = await self.$u.api.listBystock()
// if(res && res.code == 200) {
// self.details = res.data
// }
// },
loadRecord
()
{
loadRecord
()
{
if
(
this
.
status
==
'nomore'
)
return
;
if
(
this
.
status
==
'nomore'
)
return
;
this
.
status
=
'loading'
;
this
.
status
=
'loading'
;
...
...
src/pages/mine/warehouse/return.vue
View file @
c88cd3e4
...
@@ -170,7 +170,7 @@
...
@@ -170,7 +170,7 @@
overflow
:
auto
;
overflow
:
auto
;
.load-more-view
{
.load-more-view
{
margin-bottom
:
20
rpx
;
margin-bottom
:
68
rpx
;
}
}
.loading-view
{
.loading-view
{
width
:
100%
;
width
:
100%
;
...
...
src/pages/parts/addParts.vue
View file @
c88cd3e4
...
@@ -120,6 +120,7 @@ export default {
...
@@ -120,6 +120,7 @@ export default {
}
}
},
},
onLoad
(
e
)
{
onLoad
(
e
)
{
getApp
().
trackPage
(
'选择配件页'
)
if
(
e
.
categaryId
)
{
if
(
e
.
categaryId
)
{
this
.
categoryId
=
e
.
categaryId
this
.
categoryId
=
e
.
categaryId
this
.
getBrandList
()
this
.
getBrandList
()
...
...
src/pages/parts/application.vue
View file @
c88cd3e4
...
@@ -80,6 +80,7 @@ export default {
...
@@ -80,6 +80,7 @@ export default {
},
},
},
},
onLoad
(
e
)
{
onLoad
(
e
)
{
getApp
().
trackPage
(
'备件申请页'
)
this
.
orderId
=
e
&&
Number
(
e
.
orderId
)
||
0
this
.
orderId
=
e
&&
Number
(
e
.
orderId
)
||
0
this
.
applyType
=
e
&&
Number
(
e
.
applyType
)
||
0
this
.
applyType
=
e
&&
Number
(
e
.
applyType
)
||
0
this
.
initData
()
this
.
initData
()
...
@@ -235,6 +236,8 @@ export default {
...
@@ -235,6 +236,8 @@ export default {
flex-direction
:
column
;
flex-direction
:
column
;
.content
{
.content
{
margin-bottom
:
240rpx
;
margin-bottom
:
240rpx
;
height
:
100%
;
overflow-y
:
auto
;
.card
{
.card
{
margin
:
20rpx
30rpx
;
margin
:
20rpx
30rpx
;
padding
:
30rpx
;
padding
:
30rpx
;
...
...
src/pages/parts/nodes.vue
View file @
c88cd3e4
...
@@ -53,8 +53,14 @@
...
@@ -53,8 +53,14 @@
this
.
returnNo
=
e
.
returnNo
this
.
returnNo
=
e
.
returnNo
}
}
}
}
getApp
().
trackPage
(
this
.
title
)
},
},
computed
:
{
computed
:
{
title
()
{
if
(
this
.
nodeInfo
.
type
==
'parts'
)
return
'配件申请结果页'
if
(
this
.
nodeInfo
.
type
==
'return'
)
return
'返件结果页'
return
'配件申请结果页'
},
nodeInfo
()
{
nodeInfo
()
{
return
this
.
nodes
[
this
.
curType
]
return
this
.
nodes
[
this
.
curType
]
},
},
...
...
src/pages/parts/returnParts.vue
View file @
c88cd3e4
...
@@ -42,6 +42,7 @@
...
@@ -42,6 +42,7 @@
}
}
},
},
onLoad
()
{
onLoad
()
{
getApp
().
trackPage
(
"退返件页"
)
this
.
receiveData
()
this
.
receiveData
()
},
},
computed
:
{
computed
:
{
...
@@ -87,17 +88,17 @@
...
@@ -87,17 +88,17 @@
}
}
if
(
this
.
curWay
==
0
)
{
if
(
this
.
curWay
==
0
)
{
const
params
=
{
const
params
=
{
parts
:
this
.
parts
,
parts
:
JSON
.
stringify
(
this
.
parts
)
,
expressCom
:
this
.
expressCom
,
expressCom
:
this
.
expressCom
,
expressNumber
:
this
.
expressNumber
expressNumber
:
this
.
expressNumber
}
}
this
.
$u
.
api
.
returnParts
(
params
).
then
((
res
)
=>
{
this
.
$u
.
api
.
returnParts
(
params
).
then
((
res
)
=>
{
if
(
res
.
code
==
200
)
{
if
(
res
.
code
==
200
&&
res
.
data
)
{
this
.
$u
.
route
({
this
.
$u
.
route
({
url
:
'pages/parts/nodes'
,
url
:
'pages/parts/nodes'
,
params
:
{
params
:
{
type
:
1
,
type
:
1
,
returnNo
:
res
.
batchNumber
returnNo
:
res
.
data
.
batchNumber
}
}
})
})
}
}
...
...
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