Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
W
wly-APP
Project
Project
Details
Activity
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
刘川
wly-APP
Commits
d37228e5
Commit
d37228e5
authored
Aug 05, 2022
by
chuan.liu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
违约处理 详情展示 以及 发起申诉联调
parent
9f3bc467
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
149 additions
and
12 deletions
+149
-12
breakwords-handle-detail.nvue
pages/breakwords-handle-detail/breakwords-handle-detail.nvue
+130
-10
breakwords-handle.nvue
pages/breakwords-handle/breakwords-handle.nvue
+9
-2
breakwords.js
servers/breakwords.js
+10
-0
No files found.
pages/breakwords-handle-detail/breakwords-handle-detail.nvue
View file @
d37228e5
...
@@ -32,13 +32,34 @@
...
@@ -32,13 +32,34 @@
<text class="middle-date-des">{{item2.punishEndTime}}</text>
<text class="middle-date-des">{{item2.punishEndTime}}</text>
</view>
</view>
</view>
</view>
<view class="text-block text-block-last">
<view
v-if="detail.status!=='CONFIRMED'"
class="text-block text-block-last">
<text class="middle-date">有无异议</text>
<text class="middle-date">有无异议</text>
<text class="middle-date-des">{{detail.appealNotes=='1'?'有异议':'无异议'}}</text>
<text class="middle-date-des">{{detail.appealNotes=='1'?'有异议':'无异议'}}</text>
</view>
</view>
<view v-else class="text-block picker-row">
<text class="middle-date">有无异议</text>
<view class="middle-date-des uni-list picker-year">
<view class="uni-list-cell">
<view class="uni-list-cell-db">
<picker class="picker-block" @change="appealNotesChange" mode="selector"
range-key='name' :value="condition.appealNotes" :range="appealNotesPicker">
<text
class="uni-input-text">{{ appealNotesPicker[appealNotesIndex].name}}</text>
</picker>
</view>
</view>
<image class="icon-arrow" src="@/static/image/arrow_r@3x.png" mode="aspectFit"></image>
</view>
</view>
</view>
</view>
</view>
</view>
</view>
</view>
<view class="bottom-area"></view>
<view class="bottom">
<button class="btn" type="default" @tap="submit">
<text class="btn-text">提交</text>
</button>
</view>
</view>
</view>
</template>
</template>
...
@@ -48,7 +69,8 @@
...
@@ -48,7 +69,8 @@
} from 'vuex'
} from 'vuex'
import {
import {
apiGetProcessOrderDetail
apiGetProcessOrderDetail,
apiGetProcessOrderAppeal
} from '@/servers/breakwords.js'
} from '@/servers/breakwords.js'
...
@@ -57,9 +79,20 @@
...
@@ -57,9 +79,20 @@
return {
return {
loadingText: '加载中...',
loadingText: '加载中...',
condition: {
condition: {
id: ''
id: '',
appealNotes: '0',
},
},
detail: {}
detail: {},
appealNotesPicker: [{
'code': '0',
'name': '无异议'
},
{
'code': '1',
'name': '有异议'
}
],
appealNotesIndex: 0,
}
}
},
},
computed: {
computed: {
...
@@ -74,11 +107,6 @@
...
@@ -74,11 +107,6 @@
'height': `${this.sysinfo.safeArea.height - 44 }px`,
'height': `${this.sysinfo.safeArea.height - 44 }px`,
}
}
},
},
scrollHeight() {
return {
'height': `${this.sysinfo.safeArea.height - 44 - 30 }px`
}
},
},
},
onLoad(option) {
onLoad(option) {
console.log('breakwords-handle-detail', option)
console.log('breakwords-handle-detail', option)
...
@@ -99,7 +127,29 @@
...
@@ -99,7 +127,29 @@
uni.hideLoading();
uni.hideLoading();
this.detail = res.data
this.detail = res.data
}
},
async submit() {
const params = {
'createUserId': this.userInfo.code,
'createUserName': this.userInfo.name,
'id': this.condition.id,
'appealNotes': this.condition.appealNotes,
}
uni.showLoading({
title: '加载中'
});
setTimeout(function() {
uni.hideLoading();
}, 2000);
const res = await apiGetProcessOrderAppeal(params)
uni.hideLoading();
uni.navigateBack()
},
appealNotesChange(e) {
console.log('picker发送选择改变,携带值为', e.detail.value)
this.appealNotesIndex = e.detail.value
this.condition.appealNotes = this.appealNotesPicker[e.detail.value].code
},
},
},
}
}
</script>
</script>
...
@@ -209,7 +259,12 @@
...
@@ -209,7 +259,12 @@
margin-top: 60rpx;
margin-top: 60rpx;
}
}
.picker-row {
height: 96rpx;
}
.middle-date {
.middle-date {
flex: 3;
font-size: 24rpx;
font-size: 24rpx;
color: #999;
color: #999;
margin-right: 16rpx;
margin-right: 16rpx;
...
@@ -220,6 +275,40 @@
...
@@ -220,6 +275,40 @@
color: $text-base-color;
color: $text-base-color;
}
}
.picker-year {
flex: 5.5;
position: relative;
align-items: center;
height: 96rpx;
line-height: 96rpx;
text-align: center;
}
.uni-list-cell {
flex: 1;
height: 100%;
padding-right: 52rpx;
}
.uni-list-cell-db {
flex: 1;
height: 100%;
}
.picker-block {
flex: 1;
height: 100%;
}
.icon-arrow {
position: absolute;
right: 22rpx;
top: 40rpx;
width: 7px;
height: 10px;
z-index: 10;
}
.text-block-box {
.text-block-box {
display: flex;
display: flex;
flex-direction: column;
flex-direction: column;
...
@@ -233,4 +322,35 @@
...
@@ -233,4 +322,35 @@
justify-content: flex-end;
justify-content: flex-end;
text-align: right;
text-align: right;
}
}
.bottom-area {
height: 140rpx;
margin-top: 12rpx;
}
.bottom {
position: fixed;
bottom: 0;
left: 0;
z-index: 10;
width: 750rpx;
height: 140rpx;
padding: 0 32rpx;
background-color: #fff;
display: flex;
justify-content: space-between;
align-items: center;
}
.btn {
flex: 1;
height: 92rpx;
background: $wly-primary-color;
border-radius: 46rpx;
}
.btn-text {
color: #fff;
font-size: 34rpx;
}
</style>
</style>
pages/breakwords-handle/breakwords-handle.nvue
View file @
d37228e5
...
@@ -67,6 +67,8 @@
...
@@ -67,6 +67,8 @@
</view>
</view>
</view>
</view>
</view>
</view>
<button v-if="item.status==='CONFIRMED'" class="item-btn item-btn-l" type="default"
@click="checkDetal(item)"><text class="item-btn-text">发起申诉</text></button>
<button class="item-btn" type="default" @click="checkDetal(item)"><text
<button class="item-btn" type="default" @click="checkDetal(item)"><text
class="item-btn-text">查看</text></button>
class="item-btn-text">查看</text></button>
</view>
</view>
...
@@ -116,7 +118,7 @@
...
@@ -116,7 +118,7 @@
},
},
page: {
page: {
"currentPage": "1",
"currentPage": "1",
"pageSize": "
1
0",
"pageSize": "
3
0",
},
},
loadParams: {
loadParams: {
total: 0,
total: 0,
...
@@ -490,6 +492,7 @@
...
@@ -490,6 +492,7 @@
.text-block-box {
.text-block-box {
display: flex;
display: flex;
flex-direction: column;
flex-direction: column;
margin-bottom: 38rpx;
}
}
.middle-date-right {
.middle-date-right {
...
@@ -501,7 +504,7 @@
...
@@ -501,7 +504,7 @@
.item-btn {
.item-btn {
position: absolute;
position: absolute;
right:
6
4rpx;
right:
4
4rpx;
bottom: 44rpx;
bottom: 44rpx;
height: 32px;
height: 32px;
line-height: 30px;
line-height: 30px;
...
@@ -511,6 +514,10 @@
...
@@ -511,6 +514,10 @@
padding-bottom: 0;
padding-bottom: 0;
}
}
.item-btn-l {
right: 168rpx;
}
.item-btn:after {
.item-btn:after {
border: 0;
border: 0;
}
}
...
...
servers/breakwords.js
View file @
d37228e5
...
@@ -158,4 +158,14 @@ export async function apiGetProcessOrder(params) {
...
@@ -158,4 +158,14 @@ export async function apiGetProcessOrder(params) {
export
async
function
apiGetProcessOrderDetail
(
params
)
{
export
async
function
apiGetProcessOrderDetail
(
params
)
{
const
res
=
await
apiHelper
.
post
(
'/wmdpwebservices/processOrder/info'
,
params
)
const
res
=
await
apiHelper
.
post
(
'/wmdpwebservices/processOrder/info'
,
params
)
return
res
return
res
}
/**
* 处理单详情发起申诉
* @param name 账户名
* @returns {Promise<AxiosResponse<T>>}
*/
export
async
function
apiGetProcessOrderAppeal
(
params
)
{
const
res
=
await
apiHelper
.
post
(
'/wmdpwebservices/processOrder/trigger/appeal'
,
params
)
return
res
}
}
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