客户发起 修改为 售后发起中

This commit is contained in:
donqi 2022-10-06 23:42:02 +08:00
parent 3f5ef7fe33
commit 460a9b5091
1 changed files with 17 additions and 10 deletions

View File

@ -149,7 +149,7 @@
</view> </view>
<view v-for="(afterServiceRecord, afterServiceRecordIndex) in item.afterServiceRecordList"> <view v-for="(afterServiceRecord, afterServiceRecordIndex) in item.afterServiceRecordList">
<view v-if="afterServiceRecord.createBy == 1" class="padding-tb-sm solid-top"> <view v-if="afterServiceRecord.createBy == 1" class="padding-tb-sm solid-top">
<view class='cu-tag bg-main-color radius light'>客户发起</view> <view class='cu-tag bg-main-color radius light'>售后发起中</view>
<view v-if="afterServiceRecord.operType === 1"> <view v-if="afterServiceRecord.operType === 1">
<view class="text-gray text-sm margin-bottom-xs">退单退款已提交至商家其最大时限24小时内需完成操作</view> <view class="text-gray text-sm margin-bottom-xs">退单退款已提交至商家其最大时限24小时内需完成操作</view>
<view class="flex justify-start align-end"> <view class="flex justify-start align-end">
@ -217,7 +217,7 @@
</view> </view>
<view v-if="afterServiceRecord.workerFeedbackResult === 1"> <view v-if="afterServiceRecord.workerFeedbackResult === 1">
<text>同意退款金额</text> <text>同意退款金额</text>
<text>{{afterServiceRecord.agreedRefund}}</text> <text>{{afterServiceRecord.agreedRefund ? afterServiceRecord.agreedRefund : afterServiceRecord.refund}}</text>
</view> </view>
<view> <view>
<text>师傅反馈</text> <text>师傅反馈</text>
@ -259,17 +259,16 @@
<view class="flex justify-end align-end margin-tb-sm"> <view class="flex justify-end align-end margin-tb-sm">
<button class="cu-btn sm bg-yellow margin-right-sm" <button class="cu-btn sm bg-yellow margin-right-sm"
@click="afterServiceFinalCheck(afterServiceRecord.id, 1)">同意</button> @click="afterServiceFinalCheck(afterServiceRecord.id, 1)">同意</button>
<button class="cu-btn sm bg-yellow margin-right-sm" v-if="afterServiceRecord.customerFinalCheck != 0" <button class="cu-btn sm bg-yellow margin-right-sm" v-if="afterServiceRecord.customerFinalCheck == null"
@click="afterServiceFinalCheck(afterServiceRecord.id, 0)">不同意</button> @click="afterServiceFinalCheck(afterServiceRecord.id, 0)">不同意</button>
<button class="cu-btn sm bg-yellow margin-right-sm" v-else disabled type="" <button class="cu-btn sm bg-yellow margin-right-sm" v-else-if="afterServiceRecord.customerFinalCheck == 0" disabled type="">已申请平台介入</button>
@click="afterServiceFinalCheck(afterServiceRecord.id, 0)">不同意</button>
</view> </view>
</view> </view>
<view v-if="afterServiceRecord.customerFinalCheck != null" class="padding-tb-sm solid-top"> <view v-if="afterServiceRecord.customerFinalCheck != null" class="padding-tb-sm solid-top">
<view class='cu-tag bg-main-color radius light'>客户最终确认</view> <view class='cu-tag bg-main-color radius light'>客户最终确认</view>
<view class="margin-top-xs">{{afterServiceRecord.customerFinalCheck === 1 ? '同意' : '不同意'}} <view class="margin-top-xs">{{afterServiceRecord.customerFinalCheck === 1 ? '同意' : '不同意'}}
</view> </view>
<view class="text-red" v-if="afterServiceRecord.customerFinalCheck === 0">订单交由平台协商处理</view> <view class="text-red" v-if="afterServiceRecord.customerFinalCheck === 0">订单已申请平台介入</view>
</view> </view>
</view> </view>
</view> </view>
@ -423,10 +422,18 @@
}); });
if (res && res.code === 0) { if (res && res.code === 0) {
this.loadData(this.servDetail.orderMasterId); this.loadData(this.servDetail.orderMasterId);
uni.showToast({ if (agreeStatus == 1) {
icon: 'success', uni.showToast({
duration: 1000 icon: 'none',
}) duration: 2500,
title: '涉及退款部分将按付款原路退回,请留意'
})
} else {
uni.showToast({
icon: 'success',
duration: 1000
})
}
return; return;
} }
uni.showToast({ uni.showToast({