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
986061de
Commit
986061de
authored
Jun 28, 2021
by
Damon
Browse files
Options
Browse Files
Download
Plain Diff
merge
parents
bf79722a
69a373e1
Changes
16
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
530 additions
and
645 deletions
+530
-645
.env.dev.js
.env.dev.js
+1
-1
.env.js
.env.js
+1
-1
appliedPartsCell.vue
src/components/parts/appliedPartsCell.vue
+57
-17
applyList.vue
src/components/parts/applyList.vue
+196
-54
returnCell.vue
src/components/parts/returnCell.vue
+3
-3
spareCell.vue
src/components/parts/spareCell.vue
+11
-2
index.vue
src/components/submit-bar/index.vue
+8
-7
pages.json
src/pages.json
+9
-6
mine.vue
src/pages/index/mine.vue
+3
-3
index.vue
src/pages/mine/warehouse/index.vue
+33
-429
partsDetail.vue
src/pages/mine/warehouse/partsDetail.vue
+53
-7
records.vue
src/pages/mine/warehouse/records.vue
+1
-1
searchParts.vue
src/pages/mine/warehouse/searchParts.vue
+24
-4
spare.vue
src/pages/mine/warehouse/spare.vue
+3
-36
detail.vue
src/pages/order/detail.vue
+123
-70
nodes.vue
src/pages/parts/nodes.vue
+4
-4
No files found.
.env.dev.js
View file @
986061de
...
@@ -5,7 +5,7 @@ const UNI_APP = {
...
@@ -5,7 +5,7 @@ const UNI_APP = {
// banshou: 'https://m.banshou.com', //扳手app
// banshou: 'https://m.banshou.com', //扳手app
},
},
systemUrl
:
{
systemUrl
:
{
apiUrl
:
'http://192.168.
0.62:37080
'
,
//java端域名请求头
apiUrl
:
'http://192.168.
1.22
'
,
//java端域名请求头
// apiUrl: 'http://apidoc.banshouhui.com:3000/mock/31', // mock端域名请求头
// apiUrl: 'http://apidoc.banshouhui.com:3000/mock/31', // mock端域名请求头
},
},
qn_base_url
:
'https://qn-static.banshouhui.com/self-support/'
,
qn_base_url
:
'https://qn-static.banshouhui.com/self-support/'
,
...
...
.env.js
View file @
986061de
(
function
()
{
(
function
()
{
let
NODE_ENV
=
'
prod
'
;
// dev:开发环境 | test:测试环境 | prod:生产环境
let
NODE_ENV
=
'
dev
'
;
// dev:开发环境 | test:测试环境 | prod:生产环境
let
ENV_VAR
=
null
;
let
ENV_VAR
=
null
;
let
VERSION_NUMBER
=
'1.3.9'
;
//版本号
let
VERSION_NUMBER
=
'1.3.9'
;
//版本号
//小程序是否审核通过,参数配置在ucenter库version表,对应版本号的is_audit设置为1,将显示学习视频
//小程序是否审核通过,参数配置在ucenter库version表,对应版本号的is_audit设置为1,将显示学习视频
...
...
src/components/parts/appliedPartsCell.vue
View file @
986061de
...
@@ -3,13 +3,16 @@
...
@@ -3,13 +3,16 @@
<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>
<view
class=
"express-view"
>
<text>
工单编号:
</text>
<text>
物流单号:
</text>
<text
@
longpress=
"handleLongpress"
>
{{
info
.
orderNumber
}}
</text>
<view
class=
"order-file-right"
@
click=
"$u.throttle(handleClickExpress, 500)"
>
<text>
{{
info
.
express
.
number
}}
</text>
<u-icon
name=
"arrow-right"
></u-icon>
</view>
</view>
</view>
</view>
</view>
<view
class=
"line-view"
></view>
<view
class=
"line-view"
></view>
<view
class=
"list-content"
>
<view
class=
"list-content"
v-if=
"isHorizontal"
>
<view
class=
"image-list"
>
<view
class=
"image-list"
>
<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"
>
...
@@ -19,6 +22,11 @@
...
@@ -19,6 +22,11 @@
</view>
</view>
<view
class=
"count-view"
>
共
{{
info
.
items
.
length
}}
种
</view>
<view
class=
"count-view"
>
共
{{
info
.
items
.
length
}}
种
</view>
</view>
</view>
<view
v-else
class=
"list-vertical-content"
>
<view
class=
"list-item"
v-for=
"(item, index) in info.items"
:key=
"index"
>
<SpareCell
:item=
"item"
/>
</view>
</view>
<view
class=
"bottom-view"
>
<view
class=
"bottom-view"
>
<view
class=
"total-view"
>
<view
class=
"total-view"
>
<text>
合计:
</text>
<text>
合计:
</text>
...
@@ -31,15 +39,25 @@
...
@@ -31,15 +39,25 @@
</
template
>
</
template
>
<
script
>
<
script
>
import
SpareCell
from
"@/components/parts/spareCell.vue"
export
default
{
export
default
{
components
:
{
SpareCell
},
props
:
{
props
:
{
info
:
{
// 申请材料列表
info
:
{
// 申请材料列表
type
:
Object
,
type
:
Object
,
default
()
{
default
()
{
return
{
return
{
status
:
0
,
// 待签收 15;待发货 10;待审核 1;已取消 -1;已驳回 -2;已签收 20
status
:
0
,
// 待签收 15;待发货 10;待审核 1;已取消 -1;已驳回 -2;已签收 20
items
:
[],
express
:
{}
}
}
}
}
},
type
:
{
// horizontal;vertical
type
:
String
,
default
:
'horizontal'
}
}
},
},
data
()
{
data
()
{
...
@@ -56,6 +74,9 @@
...
@@ -56,6 +74,9 @@
'20'
:
''
,
'20'
:
''
,
}
}
},
},
isHorizontal
()
{
return
this
.
type
==
'horizontal'
},
operateTypes
()
{
operateTypes
()
{
return
{
return
{
'1'
:
'cancelParts'
,
'1'
:
'cancelParts'
,
...
@@ -93,16 +114,16 @@
...
@@ -93,16 +114,16 @@
},
},
titleColor
()
{
titleColor
()
{
switch
(
String
(
this
.
info
.
status
))
{
switch
(
String
(
this
.
info
.
status
))
{
case
'-
1
'
:
// 审核未通过
case
'-
2
'
:
// 审核未通过
return
'#FA5A49'
return
'#FA5A49'
case
'1'
:
// 已取消
case
'
-
1'
:
// 已取消
return
'#333333'
return
'#333333'
default
:
default
:
return
'#2272FF'
return
'#2272FF'
}
}
},
},
// 待签收 15
变 已签收 20; 10 待审核 1 变
已取消 -1
// 待签收 15
-> 已签收 20; 待审核 1 ->
已取消 -1
willStatus
()
{
willStatus
es
()
{
return
{
return
{
'1'
:
'-1'
,
'1'
:
'-1'
,
'10'
:
''
,
'10'
:
''
,
...
@@ -112,6 +133,9 @@
...
@@ -112,6 +133,9 @@
'-1'
:
''
'-1'
:
''
}
}
},
},
willStatus
()
{
return
this
.
willStatuses
[
this
.
info
.
status
]
},
total
()
{
// 合计
total
()
{
// 合计
var
i
=
0
var
i
=
0
for
(
var
item
of
this
.
info
.
items
)
{
for
(
var
item
of
this
.
info
.
items
)
{
...
@@ -142,18 +166,13 @@
...
@@ -142,18 +166,13 @@
},
},
methods
:
{
methods
:
{
handleClick
()
{
handleClick
()
{
this
.
$emit
(
'action'
,
this
.
info
.
id
,
this
.
buttonOperateType
,
this
.
willStatus
)
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
)
},
},
handleLongpress
()
{
// 长按复制单号
handleClickExpress
()
{
uni
.
setClipboardData
({
this
.
$emit
(
'express'
,
this
.
info
.
id
)
data
:
this
.
info
.
orderNumber
,
success
:
function
()
{
console
.
log
(
'success'
);
}
})
}
}
}
}
}
}
...
@@ -165,6 +184,9 @@
...
@@ -165,6 +184,9 @@
background-color
:
#FFFFFF
;
background-color
:
#FFFFFF
;
border-radius
:
12rpx
;
border-radius
:
12rpx
;
margin-bottom
:
20rpx
;
margin-bottom
:
20rpx
;
display
:
flex
;
flex-direction
:
column
;
height
:
100%
;
.title-view
{
.title-view
{
display
:
flex
;
display
:
flex
;
align-items
:
center
;
align-items
:
center
;
...
@@ -175,6 +197,15 @@
...
@@ -175,6 +197,15 @@
font-size
:
36rpx
;
font-size
:
36rpx
;
font-weight
:
bold
;
font-weight
:
bold
;
}
}
.express-view
{
display
:
flex
;
justify-content
:
center
;
.order-file-right
{
font-weight
:
400
;
color
:
#2272FF
;
font-size
:
26rpx
;
}
}
}
}
.line-view
{
.line-view
{
background-color
:
#F4F5F7
;
background-color
:
#F4F5F7
;
...
@@ -186,7 +217,7 @@
...
@@ -186,7 +217,7 @@
display
:
flex
;
display
:
flex
;
width
:
100%
;
width
:
100%
;
margin-top
:
40rpx
;
margin-top
:
40rpx
;
margin-bottom
:
4
0rpx
;
margin-bottom
:
3
0rpx
;
.image-list
{
.image-list
{
overflow-x
:
auto
;
overflow-x
:
auto
;
display
:
flex
;
display
:
flex
;
...
@@ -217,10 +248,19 @@
...
@@ -217,10 +248,19 @@
color
:
#666666
;
color
:
#666666
;
}
}
}
}
.list-vertical-content
{
height
:
100%
;
overflow
:
auto
;
.list-item
{
margin-bottom
:
30rpx
;
margin-top
:
20rpx
;
}
}
.bottom-view
{
.bottom-view
{
display
:
flex
;
display
:
flex
;
justify-content
:
space-between
;
justify-content
:
space-between
;
align-items
:
center
;
align-items
:
center
;
margin-top
:
20rpx
;
.total-view
{
.total-view
{
font-size
:
32rpx
;
font-size
:
32rpx
;
font-weight
:
bold
;
font-weight
:
bold
;
...
...
src/components/parts/applyList.vue
View file @
986061de
<
template
>
<
template
>
<u-popup
v-model=
"show"
mode=
"center"
safe-area-inset-bottom
width=
"690rpx"
:mask-close-able=
"flase"
close-icon-color=
"#FFFFFF"
height=
"80%"
>
<u-popup
v-model=
"show"
mode=
"center"
safe-area-inset-bottom
width=
"690rpx"
:mask-close-able=
"flase"
close-icon-color=
"#FFFFFF"
height=
"86%"
>
<!-- 申请列表 -->
<!-- 申请列表 -->
<view
class=
"apply-list-view"
>
<view
class=
"apply-list-view"
>
<view
class=
"colse-view"
>
<view
class=
"content-view"
>
<view
class=
"right-view"
@
click
.
throttle=
"handleClose"
>
<u-icon
name=
"close"
></u-icon>
</view>
</view>
<view
class=
"list-content"
>
<view
class=
"list-content"
>
<view
v-for=
"(item, index) in list"
:key=
"index"
>
<swiper
class=
"swiper"
:indicator-dots=
"true"
style=
"height: 100%;"
:current=
"currentIndex"
>
<AppliedCell
@
operate=
"handleOperate"
:info=
"item"
></AppliedCell>
<swiper-item
v-for=
"(item, index) in list"
:key=
"index"
>
<view
class=
"cell-view"
>
<AppliedCell
@
operate=
"handleOperate"
@
express=
"handleClickExpress"
@
action=
"handleClickCell"
:info=
"item"
:type=
"vertical"
class=
"applied-cell"
></AppliedCell>
</view>
</view>
</swiper-item>
</swiper>
</view>
</view>
<view
class=
"bottom-view"
>
<view
class=
"bottom-view"
>
<u-button
:custom-style=
"applyStyle"
shape=
"circle"
@
click=
"handleApply"
type=
"primary"
>
申请配件
</u-button>
<view
class=
"bottom-warehouse"
>
<view
class=
"bottom-title"
>
<text>
备件订单
</text>
<view
class=
"order-file-right"
@
click=
"$u.throttle(handleClick, 500)"
>
<text>
点击查看
</text>
<u-icon
name=
"arrow-right"
></u-icon>
</view>
</view>
<view
class=
"bottom-content"
>
<view
v-for=
"(item, index) in bottomItems"
:key=
"index"
class=
"bottom-content-item"
@
click=
"handleClick(item.index)"
>
<view
class=
"bottom-image"
>
<image
:src=
"item.icon"
:style=
"item.imageStyle"
></image>
</view>
<view>
{{
item
.
title
}}
</view>
</view>
</view>
</view>
<view
class=
"line-view"
></view>
<view
class=
"apply-button"
@
click=
"$u.throttle(handleApply, 500)"
>
<text
:custom-style=
"applyStyle"
type=
"primary"
>
继续申请
</text>
</view>
</view>
</view>
<view
class=
"colse-view"
>
<image
class=
"image-view"
:src=
"closeImage"
@
click
.
throttle=
"$u.throttle(handleClose, 500)"
></image>
</view>
</view>
</view>
</view>
</u-popup>
</u-popup>
...
@@ -40,30 +66,63 @@
...
@@ -40,30 +66,63 @@
},
},
data
()
{
data
()
{
return
{
return
{
currentIndex
:
0
}
}
},
},
computed
:
{
computed
:
{
applyStyle
()
{
closeImage
()
{
return
{
return
process
.
uniEnv
.
qn_base_url
+
'dianjiquxiao.png'
'height'
:
'104rpx'
,
},
'width'
:
'100%'
,
bottomItems
()
{
}
// index: 跳转到我的订单页面之后第几个tab,
return
[{
index
:
3
,
title
:
'代签收'
,
icon
:
process
.
uniEnv
.
qn_base_url
+
'daiqianshou.png'
,
imageStyle
:
'width:48rpx;height:48rpx'
},
{
index
:
2
,
title
:
'待发货'
,
icon
:
process
.
uniEnv
.
qn_base_url
+
'daifahuo.png'
,
imageStyle
:
'width:48rpx;height:48rpx'
},
{
index
:
1
,
title
:
'待审核'
,
icon
:
process
.
uniEnv
.
qn_base_url
+
'daishenhe.png'
,
imageStyle
:
'width:44rpx;height:54rpx'
},
{
index
:
4
,
title
:
'已签收'
,
icon
:
process
.
uniEnv
.
qn_base_url
+
'qianshou.png'
,
imageStyle
:
'width:48rpx;height:48rpx'
},
]
}
}
},
},
methods
:
{
methods
:
{
handleClose
()
{
handleClose
()
{
this
.
$emit
(
'update:show'
,
false
)
this
.
$emit
(
'update:show'
,
false
)
},
},
handleOperate
(
type
)
{
handleOperate
(
partsId
,
operateType
,
willStatus
)
{
// 调接口
this
.
$emit
(
'operate'
,
partsId
,
operateType
,
willStatus
)
// 刷新页面
},
// 告诉父级做了操作
handleClickCell
(
info
)
{
this
.
$emit
(
'operate'
,
type
)
this
.
$emit
(
'action'
,
info
)
},
handleClickExpress
()
{
this
.
$emit
(
'express'
,
info
)
},
},
handleApply
()
{
handleApply
()
{
this
.
$emit
(
'apply'
)
this
.
$emit
(
'apply'
)
},
},
handleClick
(
index
=
0
)
{
uni
.
navigateTo
({
url
:
'pages/mine/warehouse/index?index='
+
index
})
}
}
}
}
}
</
script
>
</
script
>
...
@@ -73,26 +132,109 @@
...
@@ -73,26 +132,109 @@
height
:
100%
;
height
:
100%
;
display
:
flex
;
display
:
flex
;
flex-direction
:
column
;
flex-direction
:
column
;
.colse-view
{
height
:
80rpx
;
.content-view
{
border-radius
:
12rpx
;
background-color
:
#FFFFFF
;
height
:
100%
;
display
:
flex
;
flex-direction
:
column
;
.list-content
{
height
:
100%
;
.swiper
{
.cell-view
{
height
:
100%
;
padding-bottom
:
100rpx
;
display
:
flex
;
flex-direction
:
column
;
.applied-cell
{
border-radius
:
12rpx
;
margin
:
30rpx
;
height
:
100%
;
box-shadow
:
0px
6px
10px
rgba
(
22
,
72
,
155
,
0
.15
);
}
}
}
}
.bottom-view
{
.bottom-warehouse
{
background-color
:
#FFFFFF
;
border-radius
:
12rpx
;
.bottom-title
{
color
:
#333333
;
font-weight
:
bold
;
font-size
:
32rpx
;
margin
:
0rpx
30rpx
40rpx
30rpx
;
display
:
flex
;
display
:
flex
;
justify-content
:
space-between
;
align-items
:
center
;
align-items
:
center
;
justify-content
:
flex-end
;
.order-file-right
{
.right-view
{
font-weight
:
400
;
width
:
80rpx
;
color
:
#2272FF
;
height
:
80rpx
;
font-size
:
26rpx
;
}
}
.bottom-content
{
display
:
flex
;
display
:
flex
;
justify-content
:
space-around
;
align-items
:
center
;
align-items
:
center
;
.bottom-content-item
{
color
:
#333333
;
font-size
:
26rpx
;
display
:
flex
;
justify-content
:
center
;
flex-direction
:
column
;
align-items
:
center
;
.bottom-image
{
width
:
60rpx
;
height
:
60rpx
;
margin-bottom
:
10rpx
;
display
:
flex
;
justify-content
:
center
;
justify-content
:
center
;
color
:
#FF0000
;
align-items
:
center
;
}
}
}
}
.list-content
{
height
:
100%
;
}
overflow
:
auto
;
}
.line-view
{
background-color
:
#F4F5F7
;
height
:
2rpx
;
width
:
100%
;
margin-top
:
24rpx
;
}
}
.bottom-view
{
.apply-button
{
width
:
100%
;
color
:
#2272FF
;
font-size
:
32rpx
;
display
:
flex
;
justify-content
:
center
;
align-items
:
center
;
height
:
112rpx
;
}
}
}
.colse-view
{
height
:
80rpx
;
display
:
flex
;
align-items
:
center
;
justify-content
:
center
;
margin-top
:
30rpx
;
.image-view
{
width
:
60rpx
;
height
:
60rpx
;
}
}
}
}
}
</
style
>
</
style
>
src/components/parts/returnCell.vue
View file @
986061de
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
<view
class=
"title-view"
>
<view
class=
"title-view"
>
<text
class=
"title-text"
>
{{
title
}}
</text>
<text
class=
"title-text"
>
{{
title
}}
</text>
<view>
<view>
<text>
返
件时间:
</text>
<text>
退
件时间:
</text>
<text>
{{
info
.
createTime
}}
</text>
<text>
{{
info
.
createTime
}}
</text>
</view>
</view>
</view>
</view>
...
@@ -17,7 +17,7 @@
...
@@ -17,7 +17,7 @@
<view
class=
"line-view"
></view>
<view
class=
"line-view"
></view>
<view
class=
"info-item"
>
<view
class=
"info-item"
>
<view>
<view>
<text>
返
件编号:
</text>
<text>
退
件编号:
</text>
<text
@
longpress=
"handleLongpress"
>
{{
info
.
number
}}
</text>
<text
@
longpress=
"handleLongpress"
>
{{
info
.
number
}}
</text>
</view>
</view>
<text
class=
"copy-view"
@
click=
"$u.throttle(handleLongpress, 500)"
>
复制
</text>
<text
class=
"copy-view"
@
click=
"$u.throttle(handleLongpress, 500)"
>
复制
</text>
...
@@ -53,7 +53,7 @@
...
@@ -53,7 +53,7 @@
},
},
computed
:
{
computed
:
{
title
()
{
title
()
{
return
this
.
info
.
finished
?
'
已返件'
:
'返
件中'
return
this
.
info
.
finished
?
'
退件完成'
:
'退
件中'
},
},
total
()
{
// 合计
total
()
{
// 合计
var
i
=
0
var
i
=
0
...
...
src/components/parts/spareCell.vue
View file @
986061de
...
@@ -8,7 +8,12 @@
...
@@ -8,7 +8,12 @@
<view>
{{
remarkText
}}
</view>
<view>
{{
remarkText
}}
</view>
</view>
</view>
</view>
</view>
<view
class=
"count-view"
>
x
{{
item
.
quantity
}}
</view>
<view
class=
"count-view"
>
<view
v-if=
"showChecked"
>
<u-number-box
v-model=
"item.quantity"
:min=
"item.min || 0"
:max=
"item.max || item.quantity"
@
change=
"numChange"
></u-number-box>
</view>
<text
v-else
>
x
{{
item
.
quantity
||
0
}}
</text>
</view>
</view>
</view>
</
template
>
</
template
>
...
@@ -51,7 +56,11 @@
...
@@ -51,7 +56,11 @@
methods
:
{
methods
:
{
handleChange
()
{
handleChange
()
{
this
.
$emit
(
'change'
)
this
.
$emit
(
'change'
)
}
},
numChange
(
event
)
{
console
.
log
(
event
.
value
)
this
.
$emit
(
'numChange'
,
event
.
value
)
},
}
}
}
}
</
script
>
</
script
>
...
...
src/components/submit-bar/index.vue
View file @
986061de
...
@@ -61,12 +61,13 @@
...
@@ -61,12 +61,13 @@
default
()
{
default
()
{
return
'确定'
return
'确定'
}
}
}
},
},
customStyle
:
{
customStyle
:
{
type
:
String
,
type
:
String
,
default
:
'background-color: #FFFFFF;padding: 0 30rpx;'
default
:
'background-color: #FFFFFF;padding: 0 30rpx;'
},
},
},
data
()
{
data
()
{
return
{
return
{
checked
:
false
checked
:
false
...
@@ -112,7 +113,7 @@
...
@@ -112,7 +113,7 @@
align-items
:
center
;
align-items
:
center
;
}
}
.bottom-left
{
.bottom-left
{
margin-left
:
30rpx
;
//
margin-left: 30rpx;
.left-list
{
.left-list
{
width
:
100%
;
width
:
100%
;
&
:nth-of-type
(
1
)
{
&
:nth-of-type
(
1
)
{
...
@@ -165,7 +166,7 @@
...
@@ -165,7 +166,7 @@
}
}
.bottom-right
{
.bottom-right
{
width
:
360rpx
;
width
:
360rpx
;
margin-right
:
20rpx
;
//
margin-right: 20rpx;
.btn
{
.btn
{
width
:
100%
;
width
:
100%
;
padding
:
30rpx
;
padding
:
30rpx
;
...
...
src/pages.json
View file @
986061de
...
@@ -267,16 +267,18 @@
...
@@ -267,16 +267,18 @@
"path"
:
"warehouse/index"
,
"path"
:
"warehouse/index"
,
"style"
:
{
"style"
:
{
"navigationStyle"
:
"custom"
,
"navigationStyle"
:
"custom"
,
"navigationBarTitleText"
:
"我的配件"
,
"navigationBarTitleText"
:
"配件订单"
,
"enablePullDownRefresh"
:
false
"enablePullDownRefresh"
:
false
,
"disableScroll"
:
true
}
}
},
},
{
{
"path"
:
"warehouse/spare"
,
"path"
:
"warehouse/spare"
,
"style"
:
{
"style"
:
{
"navigationStyle"
:
"custom"
,
"navigationStyle"
:
"custom"
,
"navigationBarTitleText"
:
"我的备件"
,
"navigationBarTitleText"
:
"备件库"
,
"enablePullDownRefresh"
:
false
"enablePullDownRefresh"
:
false
,
"disableScroll"
:
true
}
}
},
},
{
{
...
@@ -284,7 +286,8 @@
...
@@ -284,7 +286,8 @@
"style"
:
{
"style"
:
{
"navigationStyle"
:
"custom"
,
"navigationStyle"
:
"custom"
,
"navigationBarTitleText"
:
"返件信息"
,
"navigationBarTitleText"
:
"返件信息"
,
"enablePullDownRefresh"
:
false
"enablePullDownRefresh"
:
false
,
"disableScroll"
:
true
}
}
},
},
{
{
...
@@ -311,7 +314,7 @@
...
@@ -311,7 +314,7 @@
"path"
:
"warehouse/records"
,
"path"
:
"warehouse/records"
,
"style"
:
{
"style"
:
{
"navigationStyle"
:
"custom"
,
"navigationStyle"
:
"custom"
,
"navigationBarTitleText"
:
"出
入
库记录"
,
"navigationBarTitleText"
:
"出库记录"
,
"enablePullDownRefresh"
:
false
,
"enablePullDownRefresh"
:
false
,
"disableScroll"
:
true
"disableScroll"
:
true
}
}
...
...
src/pages/index/mine.vue
View file @
986061de
...
@@ -139,14 +139,14 @@
...
@@ -139,14 +139,14 @@
return
[
return
[
{
{
pathName
:
'warehouse/index'
,
pathName
:
'warehouse/index'
,
title
:
'
我的配件
'
,
title
:
'
备件订单
'
,
value
:
''
,
value
:
''
,
icon
:
process
.
uniEnv
.
qn_base_url
+
'wodepeijian.png'
,
icon
:
process
.
uniEnv
.
qn_base_url
+
'wodepeijian.png'
,
imageStyle
:
'width:60rpx;height:54rpx'
imageStyle
:
'width:60rpx;height:54rpx'
},
},
{
{
pathName
:
'warehouse/spare'
,
pathName
:
'warehouse/spare'
,
title
:
'
我的备件
'
,
title
:
'
备件库
'
,
value
:
''
,
value
:
''
,
icon
:
process
.
uniEnv
.
qn_base_url
+
'wodebeijian.png'
,
icon
:
process
.
uniEnv
.
qn_base_url
+
'wodebeijian.png'
,
imageStyle
:
'width:60rpx;height:54rpx'
imageStyle
:
'width:60rpx;height:54rpx'
...
@@ -160,7 +160,7 @@
...
@@ -160,7 +160,7 @@
},
},
{
{
pathName
:
'warehouse/records'
,
pathName
:
'warehouse/records'
,
title
:
'出
入
记录'
,
title
:
'出
库
记录'
,
value
:
''
,
value
:
''
,
icon
:
process
.
uniEnv
.
qn_base_url
+
'churuku.png'
,
icon
:
process
.
uniEnv
.
qn_base_url
+
'churuku.png'
,
imageStyle
:
'width:50rpx;height:54rpx'
imageStyle
:
'width:50rpx;height:54rpx'
...
...
src/pages/mine/warehouse/index.vue
View file @
986061de
This diff is collapsed.
Click to expand it.
src/pages/mine/warehouse/partsDetail.vue
View file @
986061de
...
@@ -39,7 +39,7 @@
...
@@ -39,7 +39,7 @@
</view>
</view>
</view>
</view>
</view>
</view>
<view
class=
"bottom-view"
>
<view
class=
"bottom-view"
v-if=
"buttonText"
>
<view
class=
"total-view"
>
<view
class=
"total-view"
>
<text>
合计:
</text>
<text>
合计:
</text>
<text
class=
"amount-view"
>
{{
total
}}
</text>
<text
class=
"amount-view"
>
{{
total
}}
</text>
...
@@ -62,7 +62,8 @@
...
@@ -62,7 +62,8 @@
return
{
return
{
info
:
{
info
:
{
items
:
[],
items
:
[],
express
:
[]
express
:
[],
status
:
'0'
},
},
logisticsRecords
:
[],
// 物流
logisticsRecords
:
[],
// 物流
};
};
...
@@ -131,9 +132,35 @@
...
@@ -131,9 +132,35 @@
'orderNumber'
:
'申请单号:'
,
'orderNumber'
:
'申请单号:'
,
'createTime'
:
'申请时间:'
,
'createTime'
:
'申请时间:'
,
'deliveryTime'
:
'发货时间:'
,
'deliveryTime'
:
'发货时间:'
,
'applyRemark'
:
'备注:'
}
}
},
operateTypes
()
{
return
{
'1'
:
'cancelParts'
,
'10'
:
''
,
'15'
:
'receiveParts'
,
'20'
:
''
,
}
},
buttonOperateType
()
{
return
this
.
operateTypes
[
this
.
info
.
status
]
},
// 待签收 15 变 已签收 20; 10 待审核 1 变 已取消 -1
willStatuses
()
{
return
{
'1'
:
'-1'
,
'10'
:
''
,
'15'
:
'20'
,
'20'
:
''
,
'-2'
:
''
,
'-1'
:
''
}
}
},
},
willStatus
()
{
return
this
.
willStatuses
[
this
.
info
.
status
]
},
},
onLoad
()
{
onLoad
()
{
getApp
().
trackPage
(
'仓库配件详情'
)
getApp
().
trackPage
(
'仓库配件详情'
)
var
pages
=
getCurrentPages
();
var
pages
=
getCurrentPages
();
...
@@ -144,9 +171,28 @@
...
@@ -144,9 +171,28 @@
},
},
methods
:
{
methods
:
{
handleClick
()
{
handleClick
()
{
// 调借口
this
.
$u
.
api
[
this
.
operateType
](
this
.
info
.
id
).
then
(
res
=>
{
// 修改info
var
type
=
'error'
// 后退
var
message
=
res
.
message
if
(
res
.
code
===
200
)
{
if
(
res
.
data
==
true
)
{
this
.
info
.
status
=
this
.
willStatus
}
}
else
{
console
.
log
(
res
.
message
)
}
this
.
$refs
.
uToast
.
show
({
title
:
message
,
type
:
type
,
duration
:
1000
,
callback
:
function
()
{}
})
var
pages
=
getCurrentPages
();
if
(
pages
.
length
>=
2
)
{
var
page
=
pages
[
pages
.
length
-
2
];
page
.
needApplyList
=
true
}
})
},
},
// 查看物流
// 查看物流
handleClickExpress
()
{
handleClickExpress
()
{
...
...
src/pages/mine/warehouse/records.vue
View file @
986061de
<
template
>
<
template
>
<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=
"content"
>
<view
class=
"panel"
>
<view
class=
"panel"
>
...
...
src/pages/mine/warehouse/searchParts.vue
View file @
986061de
...
@@ -28,7 +28,7 @@
...
@@ -28,7 +28,7 @@
<view
class=
"content-item"
>
<view
class=
"content-item"
>
<view
v-if=
"partsList && partsList.length > 0"
class=
"order-row"
>
<view
v-if=
"partsList && partsList.length > 0"
class=
"order-row"
>
<view
v-for=
"(item, index) in partsList"
:key=
"item.orderId"
>
<view
v-for=
"(item, index) in partsList"
:key=
"item.orderId"
>
<AppliedCell
@
operate=
"handleOperate"
:info=
"item"
@
action=
"handleClickCell"
></AppliedCell>
<AppliedCell
@
operate=
"handleOperate"
:info=
"item"
@
action=
"handleClickCell"
@
express=
"handleClickExpress"
></AppliedCell>
</view>
</view>
<u-loadmore
:status=
"loadStatus"
bgColor=
"#F4F5F7"
></u-loadmore>
<u-loadmore
:status=
"loadStatus"
bgColor=
"#F4F5F7"
></u-loadmore>
</view>
</view>
...
@@ -37,6 +37,9 @@
...
@@ -37,6 +37,9 @@
</view>
</view>
</view>
</view>
<view>
<u-toast
ref=
"uToast"
/>
</view>
</view>
</view>
</
template
>
</
template
>
...
@@ -70,6 +73,14 @@
...
@@ -70,6 +73,14 @@
return
'margin-top: 100rpx;background-color: #F4F5F7'
return
'margin-top: 100rpx;background-color: #F4F5F7'
},
},
},
},
onShow
()
{
// 从过程反馈回来,需要刷新数据
let
pages
=
getCurrentPages
()
let
page
=
pages
[
pages
.
length
-
1
]
if
(
page
.
needApplyList
)
{
this
.
getPartsList
()
}
},
methods
:
{
methods
:
{
searchOrder
(
index
)
{
searchOrder
(
index
)
{
this
.
search
.
pageNumber
=
1
this
.
search
.
pageNumber
=
1
...
@@ -124,14 +135,23 @@
...
@@ -124,14 +135,23 @@
})
})
},
},
handleClickCell
(
info
)
{
handleClickCell
(
info
)
{
this
.
setPageInfo
(
info
)
uni
.
navigateTo
({
url
:
'pages/mine/warehouse/partsDetail'
})
},
handleClickExpress
(
info
)
{
this
.
setPageInfo
(
info
)
uni
.
navigateTo
({
url
:
'pages/mine/warehouse/express'
})
},
setPageInfo
(
info
)
{
var
pages
=
getCurrentPages
();
var
pages
=
getCurrentPages
();
if
(
pages
.
length
>=
1
)
{
if
(
pages
.
length
>=
1
)
{
var
page
=
pages
[
pages
.
length
-
1
];
var
page
=
pages
[
pages
.
length
-
1
];
page
.
info
=
info
page
.
info
=
info
}
}
uni
.
navigateTo
({
url
:
'pages/mine/warehouse/partsDetail'
})
},
},
},
},
onReachBottom
()
{
onReachBottom
()
{
...
...
src/pages/mine/warehouse/spare.vue
View file @
986061de
<
template
>
<
template
>
<!-- 我的备件 -->
<!-- 我的备件 -->
<view
class=
"ware-house-spare"
>
<view
class=
"ware-house-spare"
>
<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=
"search-view"
>
<view
class=
"search-view"
>
<u-search
v-model=
"keyword"
:action-text=
"searchButtonText"
@
search=
"handleClickSearch"
@
clear=
"handleClear"
<u-search
v-model=
"keyword"
:action-text=
"searchButtonText"
@
search=
"handleClickSearch"
@
clear=
"handleClear"
...
@@ -42,7 +42,7 @@
...
@@ -42,7 +42,7 @@
@
submit=
"$u.throttle(handleSubmit, 500)"
/>
@
submit=
"$u.throttle(handleSubmit, 500)"
/>
</view>
</view>
</template>
</template>
<view
class=
"fixed-button"
>
<view
class=
"fixed-button"
v-if=
"!showBounce"
>
<ApplyButton
:type=
"buttonType"
@
click=
"handleClickApply"
/>
<ApplyButton
:type=
"buttonType"
@
click=
"handleClickApply"
/>
</view>
</view>
</view>
</view>
...
@@ -124,7 +124,7 @@
...
@@ -124,7 +124,7 @@
},
},
},
},
onLoad
(
e
)
{
onLoad
(
e
)
{
getApp
().
trackPage
(
'
我的备件
页'
)
getApp
().
trackPage
(
'
备件库
页'
)
this
.
getReserveList
()
this
.
getReserveList
()
},
},
methods
:
{
methods
:
{
...
@@ -138,39 +138,6 @@
...
@@ -138,39 +138,6 @@
this
.
$u
.
api
.
reserveList
(
param
).
then
((
res
)
=>
{
this
.
$u
.
api
.
reserveList
(
param
).
then
((
res
)
=>
{
if
(
res
.
code
==
200
)
{
if
(
res
.
code
==
200
)
{
res
.
data
=
[{
"name"
:
"minim in dolor"
,
"quantity"
:
15128407.808330506
,
"skuId"
:
-
31990898.14022602
,
"images"
:
"mollit nisi Duis"
,
"remark"
:
"in elit"
,
"code"
:
"esse commodo Ut ex cillum"
,
"stock"
:
"8"
},
{
"name"
:
"Excepteur ullamco dolore"
,
"quantity"
:
-
16408657.848651886
,
"skuId"
:
99507283.4197697
,
"images"
:
"dolore velit"
,
"remark"
:
"fugiat"
,
"code"
:
"elit dolore"
,
"stock"
:
"71"
},
{
"name"
:
"consectetur tempor ut in eu"
,
"quantity"
:
-
16070458.813757822
,
"skuId"
:
95208174.19993973
,
"images"
:
"do eiusmod"
,
"remark"
:
"amet magna"
,
"code"
:
"do"
,
"stock"
:
"100"
},
{
"name"
:
"deserunt"
,
"quantity"
:
12448683.358913198
,
"skuId"
:
-
78230180.52803165
,
"images"
:
"irure ut commodo"
,
"remark"
:
"dolore quis"
,
"code"
:
"deserunt cillum incididunt proident"
,
"stock"
:
"10"
}]
this
.
partsList
=
[]
this
.
partsList
=
[]
let
list
=
res
.
data
||
[]
let
list
=
res
.
data
||
[]
for
(
var
item
of
list
)
{
for
(
var
item
of
list
)
{
...
...
src/pages/order/detail.vue
View file @
986061de
<
template
>
<
template
>
<view
class=
"order-wrap"
>
<view
class=
"order-wrap"
>
<u-navbar
:title=
"title"
title-color=
"#FFFFFF"
title-size=
"32"
back-icon-color=
"#FFFFFF"
:background=
"background"
:border-bottom=
"false"
title-bold
></u-navbar>
<u-navbar
title-color=
"#FFFFFF"
title-size=
"32"
back-icon-color=
"#FFFFFF"
:background=
"background"
:border-bottom=
"false"
title-bold
></u-navbar>
<view
class=
"content"
>
<view
class=
"content"
>
<view
class=
"title-view"
>
<view
class=
"title-text"
>
{{
title
}}
</view>
<!-- 拒单 -->
<view
v-show=
"allowRejection"
class=
"reject-button"
@
click=
"$u.throttle(rejectOrder, 500)"
>
拒单
</view>
</view>
<!-- 订单详情 -->
<view
class=
"card"
>
<view
class=
"header"
v-if=
"showTimeView"
>
<view
class=
"header"
v-if=
"showTimeView"
>
<view
class=
"header-left-view"
>
<image
class=
"bottom-tag-view"
:src=
"tagImage"
></image>
<image
class=
"bottom-tag-view"
:src=
"tagImage"
></image>
<view
class=
"tip-text"
:style=
"
{'color': countColor}">
{{
tipText
}}
</view>
</view>
<!-- 倒计时 -->
<!-- 倒计时 -->
<view
class=
"title"
>
<view
class=
"title"
>
<u-count-down
:timestamp=
"timestamp"
font-size=
"28"
show-days
separator=
"zh"
separator-size=
"32"
height=
"40"
<u-count-down
:timestamp=
"timestamp"
font-size=
"28"
show-days
separator=
"zh"
separator-size=
"32"
height=
"40"
:color=
"countColor"
separator-color=
"#FFFFFF"
@
change=
"timeOutChange"
ref=
"order-count-down"
bg-color=
"#FFFFFF"
></u-count-down>
color=
"#FFFFFF"
separator-color=
"#666666"
@
change=
"timeOutChange"
ref=
"order-count-down"
:bg-color=
"countColor"
></u-count-down>
<view
class=
"header-content"
>
<!-- 抓紧时间提示 -->
<view
class=
"tip-text"
>
{{
tipText
}}
</view>
<!-- 拒单 -->
<view
v-show=
"allowRejection"
class=
"reject-button"
@
click=
"$u.throttle(rejectOrder, 500)"
>
拒单
</view>
</view>
</view>
</view>
</view>
</view>
<!-- 订单详情 -->
<view
class=
"card"
>
<Detail
:order=
"order"
:readMore
.
sync=
"readMore"
:operate=
"isAllowDianhuaAndDaohang"
></Detail>
<Detail
:order=
"order"
:readMore
.
sync=
"readMore"
:operate=
"isAllowDianhuaAndDaohang"
></Detail>
</view>
</view>
<!-- 从我的页面进来显示结算信息 -->
<!-- 从我的页面进来显示结算信息 -->
...
@@ -77,7 +79,7 @@
...
@@ -77,7 +79,7 @@
</view>
</view>
</u-popup>
</u-popup>
<!-- 已申请配件列表 -->
<!-- 已申请配件列表 -->
<ApplyList
:show
.
sync=
"showApplyList"
:list=
"partsList"
@
operate=
"handleOperate"
@
apply=
"handleApply"
></ApplyList>
<ApplyList
:show
.
sync=
"showApplyList"
:list=
"partsList"
@
action=
"handleClickCell"
@
operate=
"handleOperate"
@
apply=
"handleApply"
></ApplyList>
</
template
>
</
template
>
</view>
</view>
</template>
</template>
...
@@ -212,7 +214,7 @@
...
@@ -212,7 +214,7 @@
{
{
label
:
'配件申请'
,
label
:
'配件申请'
,
type
:
'image'
,
type
:
'image'
,
image
:
'
xiancahngpaizhao
.png'
,
image
:
'
peijian
.png'
,
show
:
this
.
allowFeedback
,
show
:
this
.
allowFeedback
,
disabled
:
false
,
disabled
:
false
,
count
:
3
,
count
:
3
,
...
@@ -240,10 +242,10 @@
...
@@ -240,10 +242,10 @@
return
this
.
timeout
?
this
.
chaoshiImage
:
this
.
shengyuImage
return
this
.
timeout
?
this
.
chaoshiImage
:
this
.
shengyuImage
},
},
chaoshiImage
()
{
chaoshiImage
()
{
return
process
.
uniEnv
.
qn_base_url
+
'chaoshi.png'
return
process
.
uniEnv
.
qn_base_url
+
'chaoshi
-red
.png'
},
},
shengyuImage
()
{
shengyuImage
()
{
return
process
.
uniEnv
.
qn_base_url
+
'shen
gyu
.png'
return
process
.
uniEnv
.
qn_base_url
+
'shen
yu-blue
.png'
},
},
types
()
{
types
()
{
return
{
return
{
...
@@ -268,13 +270,7 @@
...
@@ -268,13 +270,7 @@
return
[
this
.
type0Text
,
'预约'
,
'签到'
,
'去完工'
,
''
,
''
,
''
,
''
,
'已被抢'
,
''
]
return
[
this
.
type0Text
,
'预约'
,
'签到'
,
'去完工'
,
''
,
''
,
''
,
''
,
'已被抢'
,
''
]
},
},
tipText
()
{
// 时间紧迫提示文字
tipText
()
{
// 时间紧迫提示文字
return
this
.
timeout
?
'您的订单已超时,请及时'
+
this
.
tipTypeText
:
'请您注意剩余时间,及时'
+
this
.
tipTypeText
return
this
.
timeout
?
'订单超时'
:
'剩余时间'
},
tipTexts
()
{
return
[
'接单'
,
'预约'
,
'签到'
,
'完工'
,
''
,
''
,
''
,
''
,
''
,
''
]
},
tipTypeText
()
{
return
this
.
tipTexts
[
this
.
types
[
this
.
type
]]
},
},
title
()
{
// 标题
title
()
{
// 标题
return
this
.
titles
[
this
.
types
[
this
.
type
]]
return
this
.
titles
[
this
.
types
[
this
.
type
]]
...
@@ -359,6 +355,9 @@
...
@@ -359,6 +355,9 @@
this
.
loadOrderDetail
()
this
.
loadOrderDetail
()
this
.
loadOrderRecord
()
this
.
loadOrderRecord
()
}
}
if
(
page
.
needApplyList
)
{
this
.
getApplyList
()
}
},
},
onUnload
()
{
onUnload
()
{
this
.
unloaded
=
true
this
.
unloaded
=
true
...
@@ -655,9 +654,16 @@
...
@@ -655,9 +654,16 @@
break
break
}
}
},
},
async
handleApplyParts
()
{
// 点击了配件申请按钮
handleApplyParts
()
{
// 点击了配件申请按钮
if
(
this
.
buttons
[
3
].
count
>
0
)
{
// 已经有配件,弹出配件列表
if
(
this
.
buttons
[
3
].
count
>
0
)
{
// 已经有配件,弹出配件列表
this
.
showApplyList
=
true
this
.
showApplyList
=
true
this
.
getApplyList
()
}
else
{
// 没有配件,跳到配件申请
this
.
toApplyParts
()
}
},
async
getApplyList
()
{
let
res
=
await
this
.
$u
.
api
.
applyList
({
let
res
=
await
this
.
$u
.
api
.
applyList
({
'pageSize'
:
1000
,
'pageSize'
:
1000
,
'pageNumbr'
:
1
,
'pageNumbr'
:
1
,
...
@@ -665,10 +671,7 @@
...
@@ -665,10 +671,7 @@
'workOrderId'
:
this
.
order
.
orderId
'workOrderId'
:
this
.
order
.
orderId
})
})
if
(
res
&&
res
.
code
==
200
)
{
if
(
res
&&
res
.
code
==
200
)
{
this
.
partsList
=
res
.
data
this
.
partsList
=
res
.
data
||
[]
}
}
else
{
// 没有配件,跳到配件申请
this
.
toApplyParts
()
}
}
},
},
handleBtn
()
{
handleBtn
()
{
...
@@ -907,7 +910,47 @@
...
@@ -907,7 +910,47 @@
// 添加客服
// 添加客服
},
},
handleOperate
()
{
// 点了弹窗里的配件操作
handleOperate
()
{
// 点了弹窗里的配件操作
this
.
$u
.
api
[
operateType
](
partsId
).
then
(
res
=>
{
var
type
=
'error'
var
message
=
res
.
message
if
(
res
.
code
===
200
)
{
if
(
res
.
data
==
true
)
{
for
(
var
item
of
this
.
partsList
)
{
if
(
item
.
id
==
partsId
)
{
item
.
status
=
willStatus
break
}
}
}
}
else
{
console
.
log
(
res
.
message
)
}
this
.
$refs
.
uToast
.
show
({
title
:
message
,
type
:
type
,
duration
:
1000
,
callback
:
function
()
{}
})
})
},
handleClickCell
(
info
)
{
this
.
setPageInfo
(
info
)
uni
.
navigateTo
({
url
:
'pages/mine/warehouse/partsDetail'
})
},
handleClickExpress
(
info
)
{
this
.
setPageInfo
(
info
)
uni
.
navigateTo
({
url
:
'pages/mine/warehouse/express'
})
},
setPageInfo
(
info
)
{
var
pages
=
getCurrentPages
();
if
(
pages
.
length
>=
1
)
{
var
page
=
pages
[
pages
.
length
-
1
];
page
.
info
=
info
}
},
},
handleApply
()
{
// 点了弹窗的申请配件
handleApply
()
{
// 点了弹窗的申请配件
this
.
toApplyParts
()
this
.
toApplyParts
()
...
@@ -926,6 +969,10 @@
...
@@ -926,6 +969,10 @@
margin-left
:
6rpx
;
margin-left
:
6rpx
;
margin-right
:
6rpx
;
margin-right
:
6rpx
;
}
}
.u-mode-center-box
{
background-color
:
transparent
!
important
;
padding-top
:
40rpx
;
}
}
}
</
style
>
</
style
>
...
@@ -941,55 +988,61 @@
...
@@ -941,55 +988,61 @@
display
:
flex
;
display
:
flex
;
flex-direction
:
column
;
flex-direction
:
column
;
.header
{
.content
{
padding
:
4rpx
2rpx
24rpx
2rpx
;
height
:
100%
;
display
:
flex
;
border-radius
:
12rpx
;
align-items
:
center
;
overflow
:
auto
;
.bottom-tag-view
{
margin
:
0rpx
30rpx
30rpx
30rpx
;
width
:
116rpx
;
.title-view
{
height
:
116rpx
;
flex-shrink
:
0
;
}
.title
{
margin-left
:
24rpx
;
margin-top
:
6rpx
;
width
:
100%
;
.header-content
{
display
:
flex
;
display
:
flex
;
justify-content
:
space-between
;
justify-content
:
space-between
;
align-items
:
center
;
align-items
:
flex-end
;
margin-top
:
24
rpx
;
margin-bottom
:
20
rpx
;
min-height
:
36rpx
;
.title-text
{
.tip-text
{
font-weight
:
bold
;
font-size
:
26
rpx
;
font-size
:
48
rpx
;
color
:
#EFEFE
F
;
color
:
#FFFFF
F
;
}
}
.reject-button
{
.reject-button
{
text-align
:
center
;
width
:
106rpx
;
width
:
106rpx
;
height
:
52rpx
;
height
:
52rpx
;
border-radius
:
40rpx
;
font-size
:
26rpx
;
font-size
:
24rpx
;
font-weight
:
400
;
line-height
:
52rpx
;
line-height
:
52rpx
;
color
:
#DEDEDE
;
color
:
#DEDEDE
;
text-align
:
right
;
text-align
:
right
;
margin-right
:
4rpx
;
}
}
}
}
}
}
.content
{
height
:
100%
;
border-radius
:
12rpx
;
overflow
:
auto
;
margin
:
0rpx
30rpx
30rpx
30rpx
;
.card
{
.card
{
background-color
:
#FFFFFF
;
background-color
:
#FFFFFF
;
margin-bottom
:
20rpx
;
margin-bottom
:
20rpx
;
padding
:
30rpx
30rpx
0
30rpx
;
padding
:
30rpx
30rpx
0
30rpx
;
border-radius
:
6px
;
border-radius
:
6px
;
.header
{
display
:
flex
;
justify-content
:
space-between
;
align-items
:
center
;
border-bottom
:
2rpx
solid
#F4F5F7
;
padding-bottom
:
26rpx
;
margin-bottom
:
30rpx
;
.header-left-view
{
display
:
flex
;
align-items
:
center
;
.bottom-tag-view
{
width
:
40rpx
;
height
:
40rpx
;
margin-right
:
10rpx
;
}
.tip-text
{
font-size
:
32rpx
;
font-weight
:
bold
;
color
:
#2272FF
;
}
}
}
}
}
.record-item
{
.record-item
{
...
...
src/pages/parts/nodes.vue
View file @
986061de
...
@@ -75,10 +75,10 @@
...
@@ -75,10 +75,10 @@
}
}
if
(
this
.
isReturn
){
if
(
this
.
isReturn
){
var
pages
=
getCurrentPages
();
var
pages
=
getCurrentPages
();
if
(
pages
.
length
>=
3
)
{
if
(
pages
.
length
>=
4
)
{
var
prevPage
=
pages
[
pages
.
length
-
3
];
var
prevPage
=
pages
[
pages
.
length
-
4
];
prevPage
.
$vm
.
getReserveList
(
)
this
.
$u
.
route
({
type
:
'back'
,
delta
:
3
}
)
this
.
$u
.
route
({
type
:
'back'
,
delta
:
2
})
prevPage
.
$vm
.
$u
.
route
({
url
:
'pages/mine/warehouse/return'
})
}
else
{
}
else
{
this
.
$u
.
route
({
type
:
'back'
})
this
.
$u
.
route
({
type
:
'back'
})
}
}
...
...
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