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
Hide 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"
>
<view
class=
"list-content"
>
<u-icon
name=
"close"
></u-icon>
<swiper
class=
"swiper"
:indicator-dots=
"true"
style=
"height: 100%;"
:current=
"currentIndex"
>
</view>
<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>
</swiper-item>
</swiper>
</view>
<view
class=
"bottom-view"
>
<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>
<view
class=
"list-content"
>
<view
class=
"colse-view"
>
<view
v-for=
"(item, index) in list"
:key=
"index"
>
<image
class=
"image-view"
:src=
"closeImage"
@
click
.
throttle=
"$u.throttle(handleClose, 500)"
></image>
<AppliedCell
@
operate=
"handleOperate"
:info=
"item"
></AppliedCell>
</view>
</view>
<view
class=
"bottom-view"
>
<u-button
:custom-style=
"applyStyle"
shape=
"circle"
@
click=
"handleApply"
type=
"primary"
>
申请配件
</u-button>
</view>
</view>
</view>
</view>
</u-popup>
</u-popup>
...
@@ -40,59 +66,175 @@
...
@@ -40,59 +66,175 @@
},
},
data
()
{
data
()
{
return
{
return
{
currentIndex
:
0
}
},
computed
:
{
closeImage
()
{
return
process
.
uniEnv
.
qn_base_url
+
'dianjiquxiao.png'
},
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'
},
]
}
}
},
computed
:
{
applyStyle
()
{
return
{
'height'
:
'104rpx'
,
'width'
:
'100%'
,
}
}
},
},
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
)
// 刷新页面
// 告诉父级做了操作
this
.
$emit
(
'operate'
,
type
)
},
},
handle
Apply
(
)
{
handle
ClickCell
(
info
)
{
this
.
$emit
(
'a
pply'
)
this
.
$emit
(
'a
ction'
,
info
)
},
},
handleClickExpress
()
{
this
.
$emit
(
'express'
,
info
)
},
handleApply
()
{
this
.
$emit
(
'apply'
)
},
handleClick
(
index
=
0
)
{
uni
.
navigateTo
({
url
:
'pages/mine/warehouse/index?index='
+
index
})
}
}
}
}
}
</
script
>
</
script
>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
.apply-list-view
{
.apply-list-view
{
height
:
100%
;
height
:
100%
;
display
:
flex
;
display
:
flex
;
flex-direction
:
column
;
flex-direction
:
column
;
.colse-view
{
height
:
80rpx
;
.content-view
{
display
:
flex
;
border-radius
:
12rpx
;
align-items
:
center
;
background-color
:
#FFFFFF
;
justify-content
:
flex-end
;
height
:
100%
;
.right-view
{
display
:
flex
;
width
:
80rpx
;
flex-direction
:
column
;
height
:
80rpx
;
display
:
flex
;
.list-content
{
align-items
:
center
;
height
:
100%
;
justify-content
:
center
;
color
:
#FF0000
;
.swiper
{
}
.cell-view
{
}
height
:
100%
;
.list-content
{
padding-bottom
:
100rpx
;
height
:
100%
;
display
:
flex
;
overflow
:
auto
;
flex-direction
:
column
;
}
.applied-cell
{
.bottom-view
{
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
;
justify-content
:
space-between
;
align-items
:
center
;
.order-file-right
{
font-weight
:
400
;
color
:
#2272FF
;
font-size
:
26rpx
;
}
}
.bottom-content
{
display
:
flex
;
justify-content
:
space-around
;
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
;
align-items
:
center
;
}
}
}
}
.line-view
{
background-color
:
#F4F5F7
;
height
:
2rpx
;
width
:
100%
;
margin-top
:
24rpx
;
}
.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
<
template
>
<
template
>
<!--
我的配件
-->
<!--
备件订单
-->
<view
class=
"ware-house"
>
<view
class=
"ware-house"
>
<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"
@
click
.
self=
"handleClickSearch"
>
<view
class=
"search-view"
@
click
.
self=
"handleClickSearch"
>
<u-search
:clearabled=
"false"
disabled
@
custom=
"handleClickSearch"
placeholder=
"请输入关键字"
<u-search
:clearabled=
"false"
disabled
@
custom=
"handleClickSearch"
placeholder=
"请输入关键字"
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
<u-tabs
height=
"66"
activeColor=
"#2272FF"
bg-color=
"none"
inactive-color=
"#999"
bar-height=
"4"
<u-tabs
height=
"66"
activeColor=
"#2272FF"
bg-color=
"none"
inactive-color=
"#999"
bar-height=
"4"
bar-width=
"44"
:offset=
"[0,0]"
:list=
"list"
count=
"total"
:current=
"currentIndex"
@
change=
"change"
bar-width=
"44"
:offset=
"[0,0]"
:list=
"list"
count=
"total"
:current=
"currentIndex"
@
change=
"change"
:is-scroll=
"false"
font-size=
"28"
bold
></u-tabs>
:is-scroll=
"false"
font-size=
"28"
bold
></u-tabs>
</view>
</view>
<view
class=
"tab-view"
>
<view
class=
"tab-view"
>
<scroll-view
scroll-y
style=
"height: 100%;width: 100%;"
@
scrolltolower=
"reachBottom"
scroll-anchoring
<scroll-view
scroll-y
style=
"height: 100%;width: 100%;"
@
scrolltolower=
"reachBottom"
scroll-anchoring
refresher-enabled=
"true"
:refresher-triggered=
"triggered"
:refresher-threshold=
"100"
@
scroll=
"scroll"
refresher-enabled=
"true"
:refresher-triggered=
"triggered"
:refresher-threshold=
"100"
@
scroll=
"scroll"
...
@@ -26,14 +26,14 @@
...
@@ -26,14 +26,14 @@
:customStyle=
"noPartsCustomStyle"
/>
:customStyle=
"noPartsCustomStyle"
/>
<template
v-else
>
<template
v-else
>
<view
v-for=
"(item, index) in partsList"
:key=
"item.id"
>
<view
v-for=
"(item, index) in partsList"
:key=
"item.id"
>
<AppliedCell
@
operate=
"handleOperate"
:info=
"item"
@
action=
"handleClickCell"
></AppliedCell>
<AppliedCell
@
operate=
"handleOperate"
:info=
"item"
@
action=
"handleClickCell"
@
express=
"handleClickExpress"
></AppliedCell>
</view>
</view>
<view
class=
"load-more-view"
>
<view
class=
"load-more-view"
>
<u-loadmore
v-show=
"(pageNumber == 1 && loaded) || pageNumber > 2"
:status=
"loadStatus"
<u-loadmore
v-show=
"(pageNumber == 1 && loaded) || pageNumber > 2"
:status=
"loadStatus"
bgColor=
"#F4F5F7"
></u-loadmore>
bgColor=
"#F4F5F7"
></u-loadmore>
</view>
</view>
</
template
>
</
template
>
</scroll-view>
</scroll-view>
</view>
</view>
<view
class=
"fixed-button"
>
<view
class=
"fixed-button"
>
<ApplyButton
:type=
"buttonType"
@
click=
"handleClickApply"
/>
<ApplyButton
:type=
"buttonType"
@
click=
"handleClickApply"
/>
...
@@ -77,15 +77,15 @@
...
@@ -77,15 +77,15 @@
},
},
{
{
'name'
:
'
代
审核'
,
'name'
:
'
待
审核'
,
'status'
:
1
'status'
:
1
},
},
{
{
'name'
:
'
代
发货'
,
'name'
:
'
待
发货'
,
'status'
:
10
'status'
:
10
},
},
{
{
'name'
:
'
代
签收'
,
'name'
:
'
待
签收'
,
'status'
:
15
'status'
:
15
},
},
{
{
...
@@ -124,9 +124,18 @@
...
@@ -124,9 +124,18 @@
},
},
},
},
onLoad
(
e
)
{
onLoad
(
e
)
{
getApp
().
trackPage
(
'
我的配件
页'
)
getApp
().
trackPage
(
'
备件订单
页'
)
this
.
reloadPartsList
()
this
.
reloadPartsList
()
this
.
_freshing
=
false
;
this
.
_freshing
=
false
;
},
onShow
()
{
// 从过程反馈回来,需要刷新数据
let
pages
=
getCurrentPages
()
let
page
=
pages
[
pages
.
length
-
1
]
if
(
page
.
needApplyList
)
{
this
.
currentIndex
=
0
this
.
reloadPartsList
()
}
},
},
methods
:
{
methods
:
{
// tab栏切换
// tab栏切换
...
@@ -154,421 +163,7 @@
...
@@ -154,421 +163,7 @@
this
.
_freshing
=
false
;
this
.
_freshing
=
false
;
if
(
this
.
pageNumber
==
1
)
{
if
(
this
.
pageNumber
==
1
)
{
this
.
partsList
=
[]
this
.
partsList
=
[]
}
}
res
.
data
=
[{
"id"
:
9406509.806407556
,
"type"
:
86614521.01432693
,
"orderNumber"
:
"RQ9543573175802"
,
"uid"
:
67994626.298127
,
"workerId"
:
69452943.60857615
,
"siteId"
:
270403.14672003686
,
"status"
:
15
,
"totalPriceApply"
:
96899360.2165232
,
"totalPriceOuter"
:
35919580.812509984
,
"totalPriceWarranty"
:
-
83602139.37454514
,
"totalPriceActual"
:
-
71939604.96854639
,
"warehouseId"
:
61923414.728333235
,
"applyRemark"
:
"tempor esse adipisicing nulla"
,
"deliverRemark"
:
"enim"
,
"createTime"
:
"cupidatat in Excepteur esse anim"
,
"updateTime"
:
"dolore cillum"
,
"items"
:
[{
"id"
:
88259111.29600757
,
"orderId"
:
48226509.228051245
,
"name"
:
"空开盒"
,
"partId"
:
-
52087023.09823719
,
"status"
:
15
,
"quantity"
:
2
,
"priceApply"
:
-
74553732.16561832
,
"priceActual"
:
-
52938715.5216837
,
"returnType"
:
71273082.1392237
,
"useCount"
:
68961949.10468733
,
"createTime"
:
"ut minim laboris ex ea"
,
"updateTime"
:
"culpa ea nulla adipisicing"
,
"returnId"
:
-
73960153.99926767
,
"images"
:
"/rest/file/image/parts/invoice_1591333116039992.jpg,/rest/file/image/parts/invoice_1591333116048870.jpg"
},
{
"id"
:
-
3524944.017209992
,
"orderId"
:
34533058.60869488
,
"name"
:
"电缆"
,
"partId"
:
78320657.17744848
,
"status"
:
15
,
"quantity"
:
6
,
"priceApply"
:
72739542.49244872
,
"priceActual"
:
5169889.19776167
,
"returnType"
:
-
92361482.60375243
,
"useCount"
:
59522052.97427672
,
"createTime"
:
"ut velit adipisicing incididunt"
,
"updateTime"
:
"pariatur sed proident"
,
"returnId"
:
-
96764909.17950238
,
"images"
:
"/rest/file/image/parts/invoice_1591333116039992.jpg,/rest/file/image/parts/invoice_1591333116048870.jpg"
}],
"images"
:
"/rest/file/image/parts/invoice_1591333116039992.jpg,/rest/file/image/parts/invoice_1591333116048870.jpg"
,
"statusText"
:
"待审核"
,
"workOrderId"
:
-
12573027.93228963
,
"workOrderNumber"
:
"OR20150327000003"
,
"measures"
:
"est"
,
"express"
:
{
"orderId"
:
1804452.0561671257
,
"status"
:
-
1
,
"name"
:
"机顶盒"
,
"phoneNumber"
:
"minim Ut nisi"
,
"areaCode"
:
42437809.509774685
,
"address"
:
"magna"
,
"createTime"
:
"mollit tempor cillum"
,
"deliveryTime"
:
"consequat et labore dolore"
,
"updateTime"
:
"nostrud"
,
"remark"
:
"eiusmod mollit ea aute"
,
"com"
:
"sint nisi anim elit dolor"
,
"number"
:
"consectetur ex"
},
"productModel"
:
"incididunt magna velit Excepteur laboris"
,
"productBarcode"
:
"esse"
,
"supplierId"
:
53499096.003008485
,
"brandName"
:
"长虹(CHANGHONG)"
,
"productId"
:
-
68709997.40881962
,
"categoryName"
:
"电冰箱"
},
{
"id"
:
21491164.69065389
,
"type"
:
-
99940494.04686938
,
"orderNumber"
:
"RE9878766666"
,
"uid"
:
-
86210053.82862727
,
"workerId"
:
47505594.97869697
,
"siteId"
:
-
3766937.9397049993
,
"status"
:
-
1
,
"totalPriceApply"
:
78049843.31156719
,
"totalPriceOuter"
:
-
97305746.39303829
,
"totalPriceWarranty"
:
-
93872258.5442259
,
"totalPriceActual"
:
54629844.58685568
,
"warehouseId"
:
72893467.15425757
,
"applyRemark"
:
"ullamco cillum commodo tempor"
,
"deliverRemark"
:
"labore dolor Ut ex id"
,
"createTime"
:
"laborum enim minim sint"
,
"updateTime"
:
"tempor pariatur"
,
"items"
:
[{
"id"
:
22876807.093349114
,
"orderId"
:
-
73328349.75448325
,
"name"
:
"proident culpa"
,
"partId"
:
-
57956331.85626335
,
"status"
:
-
61540349.085944615
,
"quantity"
:
88196350.70342317
,
"priceApply"
:
-
49775657.860448994
,
"priceActual"
:
-
25006069.17107247
,
"returnType"
:
84771113.8737934
,
"useCount"
:
86264998.81449816
,
"createTime"
:
"pariatur commodo esse nisi Ut"
,
"updateTime"
:
"officia laboris cupidatat"
,
"returnId"
:
73065823.78881967
},
{
"id"
:
-
51040560.904031195
,
"orderId"
:
-
28945683.292889908
,
"name"
:
"cupidatat veniam reprehenderit velit ea"
,
"partId"
:
38434800.50565642
,
"status"
:
43614158.136024624
,
"quantity"
:
9111630.336844191
,
"priceApply"
:
38764169.330946624
,
"priceActual"
:
-
1931327.0985768437
,
"returnType"
:
-
93067293.47853354
,
"useCount"
:
90333545.98417392
,
"createTime"
:
"nisi"
,
"updateTime"
:
"cillum dolore sint"
,
"returnId"
:
91168418.0917764
},
{
"id"
:
45557257.39867419
,
"orderId"
:
1407586.8636095077
,
"name"
:
"ad labore tempor"
,
"partId"
:
-
99019059.82541245
,
"status"
:
8199757.844844416
,
"quantity"
:
49577898.758369386
,
"priceApply"
:
78393740.80746442
,
"priceActual"
:
-
19161016.249845147
,
"returnType"
:
-
99616253.70173919
,
"useCount"
:
-
91155682.11473106
,
"createTime"
:
"quis id sunt magna proident"
,
"updateTime"
:
"consequat irure"
,
"returnId"
:
69728822.52361763
},
{
"id"
:
52490483.55701485
,
"orderId"
:
22205466.1845994
,
"name"
:
"minim"
,
"partId"
:
99353322.81353238
,
"status"
:
74090404.86914167
,
"quantity"
:
92588636.85998356
,
"priceApply"
:
21638286.200525463
,
"priceActual"
:
42168758.11864549
,
"returnType"
:
2228380.1288566887
,
"useCount"
:
-
56271233.94790425
,
"createTime"
:
"ullamco"
,
"updateTime"
:
"sit Duis id proident"
,
"returnId"
:
-
48202137.79856801
},
{
"id"
:
-
17082858.02511455
,
"orderId"
:
-
74415557.20143555
,
"name"
:
"eu mollit"
,
"partId"
:
-
29774044.667875186
,
"status"
:
73843352.9406685
,
"quantity"
:
-
12878510.704664588
,
"priceApply"
:
47246503.69669163
,
"priceActual"
:
-
50399277.40573487
,
"returnType"
:
80989912.69142082
,
"useCount"
:
26525737.12704797
,
"createTime"
:
"id"
,
"updateTime"
:
"Duis"
,
"returnId"
:
18003864.839698642
}],
"images"
:
"/rest/file/image/parts/invoice_1591333116039992.jpg,/rest/file/image/parts/invoice_1591333116048870.jpg"
,
"statusText"
:
"待审核"
,
"productId"
:
23292895.61379446
,
"categoryName"
:
"电冰箱"
,
"productModel"
:
"pariatur est laborum Lorem velit"
,
"supplierId"
:
5143732.578579828
,
"workOrderId"
:
75720200.59443054
,
"measures"
:
"pariatur nisi"
,
"productBarcode"
:
"fugiat"
,
"brandName"
:
"长虹(CHANGHONG)"
,
"workOrderNumber"
:
"OR20150327000003"
,
"express"
:
{
"orderId"
:
-
45628847.934746996
,
"status"
:
84421057.49708548
,
"name"
:
"anim"
,
"phoneNumber"
:
"laborum anim elit et ex"
,
"areaCode"
:
-
8920144.598569289
,
"address"
:
"ut fugiat consequat pariatur incididunt"
,
"createTime"
:
"incididunt in"
,
"deliveryTime"
:
"enim consequat do incididunt adipisicing"
,
"updateTime"
:
"voluptate magna Ut elit sint"
,
"number"
:
"Excepteur sunt pariatur velit est"
,
"com"
:
"ea sint irure eiusmod"
,
"remark"
:
"aliqua quis tempor"
}
},
{
"id"
:
78424322.41282636
,
"type"
:
33783320.35653822
,
"orderNumber"
:
"esse do amet nulla"
,
"uid"
:
96825133.44702333
,
"workerId"
:
-
20514660.459787086
,
"siteId"
:
-
96725068.14741592
,
"status"
:
1
,
"totalPriceApply"
:
12907471.845122173
,
"totalPriceOuter"
:
83153762.12794018
,
"totalPriceWarranty"
:
-
45816944.25450489
,
"totalPriceActual"
:
46263733.25401527
,
"warehouseId"
:
-
80245498.07111172
,
"applyRemark"
:
"irure laborum"
,
"deliverRemark"
:
"non in nulla eiusmod consectetur"
,
"createTime"
:
"enim laboris"
,
"updateTime"
:
"non Excepteur incididunt magna aliquip"
,
"items"
:
[{
"id"
:
43122261.98756099
,
"orderId"
:
89891559.09495953
,
"name"
:
"aute tempor sed"
,
"partId"
:
-
33112044.289685547
,
"status"
:
-
90355790.51323123
,
"quantity"
:
99573793.60419351
,
"priceApply"
:
-
1347292.11380589
,
"priceActual"
:
60305230.40028921
,
"returnType"
:
-
34640097.10314855
,
"useCount"
:
79567567.223061
,
"createTime"
:
"cillum eu deserunt"
,
"updateTime"
:
"exercitation nisi in"
,
"returnId"
:
-
31561799.157562435
}],
"images"
:
"/rest/file/image/parts/invoice_1591333116039992.jpg,/rest/file/image/parts/invoice_1591333116048870.jpg"
,
"statusText"
:
"待审核"
,
"workOrderNumber"
:
"OR20150327000003"
,
"express"
:
{
"orderId"
:
-
77965448.40290305
,
"status"
:
-
48505936.17972718
,
"name"
:
"qui Duis"
,
"phoneNumber"
:
"anim occaecat sit commodo"
,
"areaCode"
:
-
32566304.761578918
,
"address"
:
"proident Excepteur"
,
"createTime"
:
"non laboris dolor et"
,
"deliveryTime"
:
"dolore veniam Duis"
,
"updateTime"
:
"nulla esse"
,
"number"
:
"sint ut et esse"
,
"com"
:
"irure laboris"
,
"remark"
:
"dolor Lorem laboris dolor"
},
"productBarcode"
:
"cillum nulla Ut ipsum"
,
"productId"
:
-
47980724.91529095
,
"measures"
:
"exercitation"
,
"brandName"
:
"长虹(CHANGHONG)"
,
"supplierId"
:
-
21118419.445017934
,
"productModel"
:
"incididunt irure"
,
"workOrderId"
:
23532670.725171506
,
"categoryName"
:
"电冰箱"
},
{
"id"
:
-
27016749.524627715
,
"type"
:
98311830.96038702
,
"orderNumber"
:
"Excepteur exercitation voluptate"
,
"uid"
:
-
23955900.388702527
,
"workerId"
:
12348320.263107345
,
"siteId"
:
85445481.861619
,
"status"
:
-
85639031.40044658
,
"totalPriceApply"
:
59578811.39297968
,
"totalPriceOuter"
:
63020136.54167214
,
"totalPriceWarranty"
:
43624244.99155545
,
"totalPriceActual"
:
66909001.40717006
,
"warehouseId"
:
61666308.50697875
,
"applyRemark"
:
"reprehenderit dolor consectetur"
,
"deliverRemark"
:
"voluptate aute elit Excepteur"
,
"createTime"
:
"dolore veniam Duis"
,
"updateTime"
:
"labore proident ut deserunt irure"
,
"items"
:
[{
"id"
:
29537776.228774786
,
"orderId"
:
67503467.09976402
,
"name"
:
"minim nulla nisi ex eu"
,
"partId"
:
-
21949243.355626136
,
"status"
:
93701973.31152403
,
"quantity"
:
-
5584003.629620329
,
"priceApply"
:
7135128.281559229
,
"priceActual"
:
85248204.81612098
,
"returnType"
:
12998787.696959198
,
"useCount"
:
-
68055928.52868809
,
"createTime"
:
"laboris voluptate in consequat dolor"
,
"updateTime"
:
"culpa in"
,
"returnId"
:
-
20348547.63497989
},
{
"id"
:
39742322.49149105
,
"orderId"
:
96562506.70698965
,
"name"
:
"dolore eiusmod occaecat"
,
"partId"
:
-
26810768.572022334
,
"status"
:
2796631.830863744
,
"quantity"
:
-
26922446.21481517
,
"priceApply"
:
-
55179205.75027007
,
"priceActual"
:
5697379.518900096
,
"returnType"
:
53261341.24092224
,
"useCount"
:
74342986.36835992
,
"createTime"
:
"ipsum laborum"
,
"updateTime"
:
"dolore"
,
"returnId"
:
-
21860322.65894431
},
{
"id"
:
-
17470619.832603917
,
"orderId"
:
48112878.69515741
,
"name"
:
"commodo"
,
"partId"
:
27845586.202810198
,
"status"
:
83884256.5329633
,
"quantity"
:
69335236.06709576
,
"priceApply"
:
-
84246321.52978861
,
"priceActual"
:
28965031.536926314
,
"returnType"
:
-
550131.0979412645
,
"useCount"
:
99968478.51870897
,
"createTime"
:
"pariatur qui cillum Duis"
,
"updateTime"
:
"proident aliqua sunt"
,
"returnId"
:
14952441.495038033
},
{
"id"
:
34995646.945470065
,
"orderId"
:
-
39293942.692088366
,
"name"
:
"sunt"
,
"partId"
:
57973905.82733452
,
"status"
:
66859878.30531177
,
"quantity"
:
-
72406647.4199554
,
"priceApply"
:
-
10822358.045907527
,
"priceActual"
:
26050607.973160654
,
"returnType"
:
45059697.69330442
,
"useCount"
:
41999647.11947328
,
"createTime"
:
"proident in mollit in"
,
"updateTime"
:
"reprehenderit magna amet"
,
"returnId"
:
-
86293781.49458757
},
{
"id"
:
96571724.33663553
,
"orderId"
:
-
16255981.89165847
,
"name"
:
"minim ipsum ullamco culpa"
,
"partId"
:
33297414.986852616
,
"status"
:
35470971.70208612
,
"quantity"
:
-
47109346.81945864
,
"priceApply"
:
-
72173057.59690742
,
"priceActual"
:
-
94334669.98701036
,
"returnType"
:
-
47114863.55247505
,
"useCount"
:
92358631.7287406
,
"createTime"
:
"consectetur reprehenderit minim Excepteur"
,
"updateTime"
:
"ut aute anim sed"
,
"returnId"
:
92143490.11591995
}],
"images"
:
"/rest/file/image/parts/invoice_1591333116039992.jpg,/rest/file/image/parts/invoice_1591333116048870.jpg"
,
"statusText"
:
"待审核"
,
"productBarcode"
:
"laborum cillum adipisicing ad velit"
,
"categoryName"
:
"电冰箱"
,
"workOrderId"
:
12532424.255793735
,
"workOrderNumber"
:
"OR20150327000003"
,
"brandName"
:
"长虹(CHANGHONG)"
,
"express"
:
{
"orderId"
:
-
47061242.5943119
,
"status"
:
-
71113301.69277315
,
"name"
:
"sit in"
,
"phoneNumber"
:
"voluptate dolor commodo"
,
"areaCode"
:
3163523.565223247
,
"address"
:
"sed consectetur aliqua"
,
"createTime"
:
"occaecat fugiat in mollit"
,
"deliveryTime"
:
"consectetur anim"
,
"updateTime"
:
"velit non enim ut"
,
"com"
:
"qui sint cillum"
,
"remark"
:
"sed nostrud cillum"
,
"number"
:
"veniam nulla"
},
"supplierId"
:
659667.8267708272
,
"productId"
:
87457975.53702831
,
"productModel"
:
"ex"
,
"measures"
:
"do in non"
},
{
"id"
:
79910321.25893903
,
"type"
:
-
92755715.85938272
,
"orderNumber"
:
"dolore"
,
"uid"
:
32045129.492245644
,
"workerId"
:
-
87225497.55755508
,
"siteId"
:
929206.9191809446
,
"status"
:
-
49628754.46400306
,
"totalPriceApply"
:
-
86759265.47973964
,
"totalPriceOuter"
:
77774648.6038025
,
"totalPriceWarranty"
:
-
43192184.70357793
,
"totalPriceActual"
:
63259397.26451972
,
"warehouseId"
:
-
51540398.5483279
,
"applyRemark"
:
"ut"
,
"deliverRemark"
:
"est labore dolor"
,
"createTime"
:
"consectetur"
,
"updateTime"
:
"ut velit tempor irure mollit"
,
"items"
:
[{
"id"
:
-
59145028.86317692
,
"orderId"
:
-
11320686.899104223
,
"name"
:
"enim"
,
"partId"
:
49736274.59968069
,
"status"
:
95250295.35558042
,
"quantity"
:
-
81208607.06551526
,
"priceApply"
:
-
8044619.175376594
,
"priceActual"
:
-
48277760.54597996
,
"returnType"
:
64159297.29585245
,
"useCount"
:
84371931.03454325
,
"createTime"
:
"esse ea dolor anim nulla"
,
"updateTime"
:
"laborum reprehenderit sit veniam"
,
"returnId"
:
24299761.634605184
}],
"images"
:
"/rest/file/image/parts/invoice_1591333116039992.jpg,/rest/file/image/parts/invoice_1591333116048870.jpg"
,
"statusText"
:
"待审核"
,
"productModel"
:
"ut sint dolor reprehenderit eu"
,
"brandName"
:
"长虹(CHANGHONG)"
,
"productBarcode"
:
"reprehenderit laboris Lorem tempor"
,
"measures"
:
"irure elit pariatur"
,
"supplierId"
:
-
36938327.731029876
,
"workOrderId"
:
78526155.84958395
,
"express"
:
{
"orderId"
:
-
49350095.5799381
,
"status"
:
29255996.85214384
,
"name"
:
"irure labore"
,
"phoneNumber"
:
"dolor mollit pariatur consectetur"
,
"areaCode"
:
43876681.307484895
,
"address"
:
"ipsum enim dolor nostrud proident"
,
"createTime"
:
"in pariatur eiusmod"
,
"deliveryTime"
:
"ea"
,
"updateTime"
:
"aute"
,
"remark"
:
"ut id magna"
,
"number"
:
"eu Ut"
,
"com"
:
"dolor culpa non Ut"
},
"productId"
:
-
58537035.058075525
,
"workOrderNumber"
:
"OR20150327000003"
,
"categoryName"
:
"电冰箱"
}]
let
list
=
res
.
data
||
[]
let
list
=
res
.
data
||
[]
this
.
partsList
.
push
(...
list
)
this
.
partsList
.
push
(...
list
)
this
.
loadStatus
=
list
.
length
<
this
.
pageSize
?
'nomore'
:
'loadmore'
this
.
loadStatus
=
list
.
length
<
this
.
pageSize
?
'nomore'
:
'loadmore'
...
@@ -602,14 +197,23 @@
...
@@ -602,14 +197,23 @@
},
},
handleClickCell
(
info
)
{
handleClickCell
(
info
)
{
var
pages
=
getCurrentPages
();
this
.
setPageInfo
(
info
)
if
(
pages
.
length
>=
1
)
{
var
page
=
pages
[
pages
.
length
-
1
];
page
.
info
=
info
}
uni
.
navigateTo
({
uni
.
navigateTo
({
url
:
'pages/mine/warehouse/partsDetail'
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
}
},
},
handleClickApply
()
{
handleClickApply
()
{
uni
.
navigateTo
({
uni
.
navigateTo
({
...
...
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
:
[],
// 物流
};
};
...
@@ -130,9 +131,35 @@
...
@@ -130,9 +131,35 @@
return
{
return
{
'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
(
'仓库配件详情'
)
...
@@ -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=
"header"
v-if=
"showTimeView"
>
<view
class=
"title-view"
>
<image
class=
"bottom-tag-view"
:src=
"tagImage"
></image>
<view
class=
"title-text"
>
{{
title
}}
</view>
<!-- 倒计时 -->
<!-- 拒单 -->
<view
class=
"title"
>
<view
v-show=
"allowRejection"
class=
"reject-button"
@
click=
"$u.throttle(rejectOrder, 500)"
>
拒单
</view>
<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>
<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
class=
"card"
>
<view
class=
"card"
>
<view
class=
"header"
v-if=
"showTimeView"
>
<view
class=
"header-left-view"
>
<image
class=
"bottom-tag-view"
:src=
"tagImage"
></image>
<view
class=
"tip-text"
:style=
"
{'color': countColor}">
{{
tipText
}}
</view>
</view>
<!-- 倒计时 -->
<view
class=
"title"
>
<u-count-down
:timestamp=
"timestamp"
font-size=
"28"
show-days
separator=
"zh"
separator-size=
"32"
height=
"40"
color=
"#FFFFFF"
separator-color=
"#666666"
@
change=
"timeOutChange"
ref=
"order-count-down"
:bg-color=
"countColor"
></u-count-down>
</view>
</view>
<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,11 +671,8 @@
...
@@ -665,11 +671,8 @@
'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
()
{
console
.
log
(
'click button'
)
console
.
log
(
'click button'
)
...
@@ -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
{
padding
:
4rpx
2rpx
24rpx
2rpx
;
display
:
flex
;
align-items
:
center
;
.bottom-tag-view
{
width
:
116rpx
;
height
:
116rpx
;
flex-shrink
:
0
;
}
.title
{
margin-left
:
24rpx
;
margin-top
:
6rpx
;
width
:
100%
;
.header-content
{
display
:
flex
;
justify-content
:
space-between
;
align-items
:
center
;
margin-top
:
24rpx
;
min-height
:
36rpx
;
.tip-text
{
font-size
:
26rpx
;
color
:
#EFEFEF
;
}
.reject-button
{
text-align
:
center
;
width
:
106rpx
;
height
:
52rpx
;
border-radius
:
40rpx
;
font-size
:
24rpx
;
font-weight
:
400
;
line-height
:
52rpx
;
color
:
#DEDEDE
;
text-align
:
right
;
}
}
}
}
.content
{
.content
{
height
:
100%
;
height
:
100%
;
border-radius
:
12rpx
;
border-radius
:
12rpx
;
overflow
:
auto
;
overflow
:
auto
;
margin
:
0rpx
30rpx
30rpx
30rpx
;
margin
:
0rpx
30rpx
30rpx
30rpx
;
.title-view
{
display
:
flex
;
justify-content
:
space-between
;
align-items
:
flex-end
;
margin-bottom
:
20rpx
;
.title-text
{
font-weight
:
bold
;
font-size
:
48rpx
;
color
:
#FFFFFF
;
}
.reject-button
{
width
:
106rpx
;
height
:
52rpx
;
font-size
:
26rpx
;
line-height
:
52rpx
;
color
:
#DEDEDE
;
text-align
:
right
;
margin-right
:
4rpx
;
}
}
.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