Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
take_order
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
和慭琛
take_order
Commits
fdabdd31
Commit
fdabdd31
authored
Jan 12, 2021
by
和慭琛
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
结算信息 需求开发
parent
af75b2f0
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
95 additions
and
11 deletions
+95
-11
App.vue
take-order/App.vue
+2
-2
pages.json
take-order/pages.json
+10
-8
detail.vue
take-order/pages/take/detail.vue
+83
-1
No files found.
take-order/App.vue
View file @
fdabdd31
...
@@ -15,10 +15,10 @@
...
@@ -15,10 +15,10 @@
//https://system.dev.banshouhui.com
//https://system.dev.banshouhui.com
//正式环境
//正式环境
domain_Name
:
'https://system.banshouhui.com'
,
//
domain_Name: 'https://system.banshouhui.com',
//测试环境
//测试环境
//
domain_Name: 'https://system.dev.banshouhui.com',
domain_Name
:
'https://system.dev.banshouhui.com'
,
//http://192.168.0.208:8192
//http://192.168.0.208:8192
//小青本地环境
//小青本地环境
...
...
take-order/pages.json
View file @
fdabdd31
...
@@ -7,7 +7,9 @@
...
@@ -7,7 +7,9 @@
"pages"
:
[
//pages数组中第一项表示应用启动页,参考:https
:
//uniapp.dcloud.io/collocation/pages
"pages"
:
[
//pages数组中第一项表示应用启动页,参考:https
:
//uniapp.dcloud.io/collocation/pages
{
{
"path"
:
"pages/index/index"
,
"path"
:
"pages/index/index"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"下单"
"navigationBarTitleText"
:
"下单"
...
@@ -23,7 +25,12 @@
...
@@ -23,7 +25,12 @@
},
},
{
"path"
:
"pages/take/detail"
,
"style"
:
{
"navigationBarTitleText"
:
"工单详情"
}
},
{
{
...
@@ -177,12 +184,7 @@
...
@@ -177,12 +184,7 @@
}
}
},
},
{
"path"
:
"pages/take/detail"
,
"style"
:
{
"navigationBarTitleText"
:
"工单详情"
}
},
{
{
"path"
:
"pages/take/rob"
,
"path"
:
"pages/take/rob"
,
...
...
take-order/pages/take/detail.vue
View file @
fdabdd31
...
@@ -70,6 +70,7 @@
...
@@ -70,6 +70,7 @@
</view>
</view>
</view>
</view>
</view>
</view>
<view
class=
"finishView"
v-if=
"orderInfo.statusText == '已完工'"
>
<view
class=
"finishView"
v-if=
"orderInfo.statusText == '已完工'"
>
<view
class=
"itemView u-m-t-50"
v-if=
"orderInfo.maintainWorkerName"
>
<view
class=
"itemView u-m-t-50"
v-if=
"orderInfo.maintainWorkerName"
>
<view
class=
"u-p-l-30 u-p-r-30"
>
<view
class=
"u-p-l-30 u-p-r-30"
>
...
@@ -99,13 +100,27 @@
...
@@ -99,13 +100,27 @@
<image
class=
"photoImage"
@
click=
"photoClick(item,ikey)"
:src=
"item"
mode=
"aspectFill"
></image>
<image
class=
"photoImage"
@
click=
"photoClick(item,ikey)"
:src=
"item"
mode=
"aspectFill"
></image>
</view>
</view>
</view>
</view>
<view
class=
"itemView u-m-t-30
padding_bottom_180
"
v-if=
"orderInfo.guaranteeExplain"
>
<view
class=
"itemView u-m-t-30"
v-if=
"orderInfo.guaranteeExplain"
>
<view
class=
"u-p-l-30 u-p-r-30"
>
<view
class=
"u-p-l-30 u-p-r-30"
>
<text
class=
"titleText"
>
完工描述:
</text>
<text
class=
"titleText"
>
完工描述:
</text>
<text
class=
"contentText u-m-l-10"
>
{{
orderInfo
.
guaranteeExplain
}}
</text>
<text
class=
"contentText u-m-l-10"
>
{{
orderInfo
.
guaranteeExplain
}}
</text>
</view>
</view>
</view>
</view>
</view>
</view>
<view
class=
"divideLine"
></view>
<view
class=
"settleView padding_bottom_180"
v-if=
"settleList.length>0"
>
<view
class=
"itemView u-m-t-30"
>
<text
class=
"titleText u-m-l-30"
>
结算信息:
</text>
</view>
<view
class=
"itemView u-m-t-30"
v-for=
"(item,ikey) in settleList"
:key=
"ikey"
>
<view
class=
"u-p-l-30 u-p-r-30"
>
<text
class=
"titleText"
>
{{
item
.
businessSettlementType
}}
:
</text>
<text
class=
"contentText u-m-l-10"
>
¥
{{
item
.
realSettlementAmount
}}
(
{{
item
.
statementStatusText
}}
)
</text>
</view>
</view>
</view>
<view
class=
"bottomView"
v-if=
"orderInfo.statusText != '已完工' && isBottomShow == true"
>
<view
class=
"bottomView"
v-if=
"orderInfo.statusText != '已完工' && isBottomShow == true"
>
<view
class=
"bottomLeftView"
@
click=
"cancelClick()"
>
<view
class=
"bottomLeftView"
@
click=
"cancelClick()"
>
<text
class=
"u-font-28 gray66"
>
退单
</text>
<text
class=
"u-font-28 gray66"
>
退单
</text>
...
@@ -175,6 +190,7 @@
...
@@ -175,6 +190,7 @@
{
title
:
'重复单'
,
type
:
4
},
{
title
:
'重复单'
,
type
:
4
},
{
title
:
'单派错了'
,
type
:
5
},
{
title
:
'单派错了'
,
type
:
5
},
],
],
settleList
:[],
}
}
},
},
...
@@ -232,6 +248,7 @@
...
@@ -232,6 +248,7 @@
getApp
().
globalData
.
token
=
res
.
data
getApp
().
globalData
.
token
=
res
.
data
that
.
getOrderDetail
()
that
.
getOrderDetail
()
that
.
getSettleInfo
()
},
},
fail
()
{
fail
()
{
uni
.
navigateTo
({
uni
.
navigateTo
({
...
@@ -309,6 +326,64 @@
...
@@ -309,6 +326,64 @@
})
})
},
},
//获取结算信息
getSettleInfo
:
function
(){
let
that
=
this
uni
.
showLoading
({
title
:
'加载中'
})
uni
.
request
({
url
:
getApp
().
globalData
.
domain_Name
+
'/wxh-worker-rest/rest/settle/'
+
getApp
().
globalData
.
token
+
'/querySettleByOrder/'
+
this
.
orderId
,
method
:
'GET'
,
data
:
{
//orderId:this.orderId
},
success
:
(
res
)
=>
{
uni
.
hideLoading
()
console
.
log
(
'获取结算信息 成功'
)
console
.
log
(
res
)
if
(
res
.
statusCode
==
401
){
uni
.
navigateTo
({
url
:
'/pages/login/wxlogin'
})
return
}
if
(
res
.
data
.
code
==
200
){
that
.
settleList
=
res
.
data
.
data
}
else
{
uni
.
showToast
({
icon
:
'none'
,
title
:
res
.
data
.
message
})
}
},
fail
:
(
e
)
=>
{
uni
.
hideLoading
()
console
.
log
(
'获取结算信息 失败'
)
console
.
log
(
e
)
uni
.
showToast
({
icon
:
'none'
,
title
:
'获取结算信息失败'
})
}
})
},
//底部按钮标题
//底部按钮标题
setBottomTitle
:
function
(
res
){
setBottomTitle
:
function
(
res
){
...
@@ -920,6 +995,13 @@
...
@@ -920,6 +995,13 @@
font-size
:
28
rpx
;
font-size
:
28
rpx
;
}
}
.settleView
{
background-color
:
#FFFFFF
;
width
:
100%
;
display
:
flex
;
flex-direction
:
column
;
}
...
...
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