|
|
@@ -88,9 +88,10 @@
|
|
|
<text>{{ item.reportTime }}</text>
|
|
|
</view>
|
|
|
<view class="time_type" v-if="item.state === '待接单'">待接单</view>
|
|
|
+ <view class="time_type" v-if="item.state === '待处理'">待处理</view>
|
|
|
<view class="time_type color_type" v-if="item.state === '维修中'">维修中</view>
|
|
|
- <view class="time_type color_type" v-if="item.state === '协作待审核'">协作待审核</view>
|
|
|
- <view class="time_type color_type" v-if="item.state === '转单待审核'">转单待审核</view>
|
|
|
+ <view class="time_type color_type" v-if="item.state === '协作审核'">协作审核</view>
|
|
|
+ <view class="time_type color_type" v-if="item.state === '转单审核'">转单审核</view>
|
|
|
<view class="time_type color_type2" v-if="item.state === '待审核'">待审核</view>
|
|
|
<view class="time_type color_type3" v-if="item.state === '已完成'">已完成</view>
|
|
|
<view class="time_type" v-if="item.state === '待确认'">待确认</view>
|
|
|
@@ -190,7 +191,13 @@
|
|
|
<!-- 延时按钮 -->
|
|
|
<view class="btn_box type" v-if="(item.state === '待接单' || item.state === '维修中') && btns.includes('延时')" @click.stop="handleDelay(item)">延时</view>
|
|
|
<!-- 接单按钮 -->
|
|
|
- <!-- <view class="btn_box type" v-if="item.state === '待接单' && btns.includes('接单')" @click.stop="handleOrderReceiving(item)">接单</view> -->
|
|
|
+ <view
|
|
|
+ class="btn_box type"
|
|
|
+ v-if="item.state === '待接单' && btns.includes('接单') && (!btns.includes('首页分段器') || current === 1)"
|
|
|
+ @click.stop="handleOrderReceiving(item)"
|
|
|
+ >
|
|
|
+ 接单
|
|
|
+ </view>
|
|
|
<!-- 转单按钮 -->
|
|
|
<view class="btn_box type2" v-if="item.state === '待接单' && btns.includes('转单')" @click.stop="handleTransferOrder(item)">转单</view>
|
|
|
<!-- 派单按钮 -->
|
|
|
@@ -202,9 +209,9 @@
|
|
|
<!-- 审核按钮 -->
|
|
|
<view class="btn_box type" v-if="(item.state === '协作审核' || item.state === '转单审核') && btns.includes('审核')" @click.stop="handleAudit(item)">审核</view>
|
|
|
<!-- 改价按钮 -->
|
|
|
- <view class="btn_box type" v-if="item.state === '待确认'" @click.stop="handleChangeOffer(item)">改价</view>
|
|
|
+ <view class="btn_box type" v-if="item.state === '待处理'" @click.stop="handleChangeOffer(item)">改价</view>
|
|
|
<!-- 留言按钮 -->
|
|
|
- <view class="btn_box type2" v-if="item.state === '待确认'" @click.stop="handleLeaveWords">留言</view>
|
|
|
+ <view class="btn_box type2" v-if="item.state === '待处理'" @click.stop="handleLeaveWords(item)">留言</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
|
|
|
@@ -466,14 +473,26 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
// 留言弹窗确定按钮回调
|
|
|
- handleLeaveWordsConfirm() {
|
|
|
+ async handleLeaveWordsConfirm() {
|
|
|
if (this.leaveWords) {
|
|
|
- uni.showToast({
|
|
|
- title: '留言成功',
|
|
|
- icon: 'success',
|
|
|
- mask: true
|
|
|
+ const res = await this.$myRequest_repairs({
|
|
|
+ url: '/repairRecord/mobileReply',
|
|
|
+ method: 'post',
|
|
|
+ data: {
|
|
|
+ recordId: this.orderId,
|
|
|
+ userId: this.userId,
|
|
|
+ content: this.leaveWords
|
|
|
+ }
|
|
|
})
|
|
|
- this.$refs.popup_leaveWords.close()
|
|
|
+ // console.log(res)
|
|
|
+ if (res.code === '200') {
|
|
|
+ uni.showToast({
|
|
|
+ title: '留言成功',
|
|
|
+ icon: 'success',
|
|
|
+ mask: true
|
|
|
+ })
|
|
|
+ this.$refs.popup_leaveWords.close()
|
|
|
+ }
|
|
|
} else {
|
|
|
uni.showToast({
|
|
|
title: '请输入留言内容',
|
|
|
@@ -603,7 +622,6 @@ export default {
|
|
|
onClickItem(e) {
|
|
|
if (this.current != e.currentIndex) {
|
|
|
this.current = e.currentIndex
|
|
|
- console.log(this.current)
|
|
|
this.state = 1
|
|
|
this.dataList = []
|
|
|
this.currentPage = 1
|
|
|
@@ -619,7 +637,8 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
// 留言按钮回调
|
|
|
- handleLeaveWords() {
|
|
|
+ handleLeaveWords(item) {
|
|
|
+ this.orderId = item.id
|
|
|
this.$refs.popup_leaveWords.open('center')
|
|
|
},
|
|
|
// 延时按钮回调
|
|
|
@@ -820,9 +839,9 @@ export default {
|
|
|
justify-content: space-between;
|
|
|
align-items: center;
|
|
|
padding: 0 30rpx;
|
|
|
- height: 79rpx;
|
|
|
|
|
|
.time_msg {
|
|
|
+ width: 500rpx;
|
|
|
color: #808080;
|
|
|
|
|
|
text {
|
|
|
@@ -831,8 +850,12 @@ export default {
|
|
|
}
|
|
|
|
|
|
.time_type {
|
|
|
+ flex: 1;
|
|
|
+ box-sizing: border-box;
|
|
|
+ padding-left: 10rpx;
|
|
|
font-size: 32rpx;
|
|
|
color: #ff5733;
|
|
|
+ line-height: 60rpx;
|
|
|
}
|
|
|
|
|
|
.color_type {
|
|
|
@@ -851,7 +874,6 @@ export default {
|
|
|
|
|
|
.item_box {
|
|
|
display: flex;
|
|
|
- align-items: center;
|
|
|
padding: 0 30rpx;
|
|
|
line-height: 60rpx;
|
|
|
|
|
|
@@ -861,6 +883,7 @@ export default {
|
|
|
}
|
|
|
|
|
|
.box_value {
|
|
|
+ flex: 1;
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
margin-right: auto;
|