售后完善
This commit is contained in:
parent
e0db5cb26d
commit
b877f7417e
|
|
@ -611,4 +611,16 @@ export default {
|
||||||
})
|
})
|
||||||
return res[1].data;
|
return res[1].data;
|
||||||
},
|
},
|
||||||
|
async editAfterServiceRecord(params = {}) {
|
||||||
|
let res = await uni.request({
|
||||||
|
url: '/worker/record/edit',
|
||||||
|
method: 'POST',
|
||||||
|
data: params,
|
||||||
|
header: {
|
||||||
|
pageNum: params.pageNum,
|
||||||
|
pageSize: params.pageSize
|
||||||
|
}
|
||||||
|
})
|
||||||
|
return res[1].data;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -31,7 +31,7 @@
|
||||||
<view v-else-if="product.payMoney" class="flex justify-start align-center">
|
<view v-else-if="product.payMoney" class="flex justify-start align-center">
|
||||||
<text class="text-price text-red text-bold text-xl">{{product.payMoney}}</text>
|
<text class="text-price text-red text-bold text-xl">{{product.payMoney}}</text>
|
||||||
</view>
|
</view>
|
||||||
<view class="padding-xs">
|
<view class="padding-xs" v-if="product.deptGoodsCategoryName">
|
||||||
<view class='cu-tag light bg-blue'>
|
<view class='cu-tag light bg-blue'>
|
||||||
<text v-if="product.parGoodsCategoryName">
|
<text v-if="product.parGoodsCategoryName">
|
||||||
{{product.parGoodsCategoryName}}
|
{{product.parGoodsCategoryName}}
|
||||||
|
|
|
||||||
|
|
@ -190,8 +190,9 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
icon: 'error',
|
title: '无法对同一个订单重复发起售后或退款',
|
||||||
duration: 1000
|
icon: 'none',
|
||||||
|
duration: 2000
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -32,8 +32,10 @@
|
||||||
<view class="bg-white margin-lr-sm margin-top-sm padding">
|
<view class="bg-white margin-lr-sm margin-top-sm padding">
|
||||||
<view class="flex align-center">
|
<view class="flex align-center">
|
||||||
<text class="text-xl margin-right">{{servDetail.goodsName}}</text>
|
<text class="text-xl margin-right">{{servDetail.goodsName}}</text>
|
||||||
<view class='cu-tag bg-purple radius light margin-right-sm' v-if="servDetail.orderStatus === 3">服务中</view>
|
<view class='cu-tag bg-purple radius light margin-right-sm' v-if="servDetail.orderStatus === 3">服务中
|
||||||
<view class='cu-tag bg-purple radius light margin-right-sm' v-if="servDetail.orderStatus === 2">待上门</view>
|
</view>
|
||||||
|
<view class='cu-tag bg-purple radius light margin-right-sm' v-if="servDetail.orderStatus === 2">待上门
|
||||||
|
</view>
|
||||||
<view class='cu-tag bg-grey radius light margin-right-sm' v-if="servDetail.orderStatus === 6">已取消</view>
|
<view class='cu-tag bg-grey radius light margin-right-sm' v-if="servDetail.orderStatus === 6">已取消</view>
|
||||||
</view>
|
</view>
|
||||||
<!-- <view class="margin-top-sm">
|
<!-- <view class="margin-top-sm">
|
||||||
|
|
@ -83,11 +85,13 @@
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="margin-top-sm">
|
<view class="margin-top-sm">
|
||||||
<simple-product-picked :product="servDetail" :pickedList="servDetail.standardList" :columnTitleArr="servingColumnHeaders" :valFieldArr="servingValFields"></simple-product-picked>
|
<simple-product-picked :product="servDetail" :pickedList="servDetail.standardList"
|
||||||
|
:columnTitleArr="servingColumnHeaders" :valFieldArr="servingValFields"></simple-product-picked>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<!-- 子单完成记录 -->
|
<!-- 子单完成记录 -->
|
||||||
<view class="bg-white margin-lr-sm padding-lr padding-bottom margin-top-sm" v-for="(item, index) in servDetail.orderStandardDetailList">
|
<view class="bg-white margin-lr-sm padding-lr padding-bottom margin-top-sm"
|
||||||
|
v-for="(item, index) in servDetail.orderStandardDetailList">
|
||||||
<view class="cu-bar solid-bottom">
|
<view class="cu-bar solid-bottom">
|
||||||
<view class="action bar-first-action">
|
<view class="action bar-first-action">
|
||||||
<text class="cuIcon-titles text-main-color"></text> 施工记录
|
<text class="cuIcon-titles text-main-color"></text> 施工记录
|
||||||
|
|
@ -100,7 +104,8 @@
|
||||||
<view class="margin-top-sm">预约时间:{{item.expectTimeStart + '~' + item.expectTimeEnd}}</view>
|
<view class="margin-top-sm">预约时间:{{item.expectTimeStart + '~' + item.expectTimeEnd}}</view>
|
||||||
<view class="margin-top-sm" v-if="servDetail.orderStatus >= 3">上门时间:{{item.workBeginTime}}</view>
|
<view class="margin-top-sm" v-if="servDetail.orderStatus >= 3">上门时间:{{item.workBeginTime}}</view>
|
||||||
<view class="margin-top-sm" v-if="servDetail.orderStatus >= 4">完成时间:{{item.workFinishTime}}</view>
|
<view class="margin-top-sm" v-if="servDetail.orderStatus >= 4">完成时间:{{item.workFinishTime}}</view>
|
||||||
<simple-product-picked :pickedList="item.orderStandardList" :columnTitleArr="servedColumnHeaders" :valFieldArr="servedValFields"></simple-product-picked>
|
<simple-product-picked :pickedList="item.orderStandardList" :columnTitleArr="servedColumnHeaders"
|
||||||
|
:valFieldArr="servedValFields"></simple-product-picked>
|
||||||
</view>
|
</view>
|
||||||
<view v-if="servDetail.orderStatus > 3 && item.finishImgList && item.finishImgList.length" class="bg-white">
|
<view v-if="servDetail.orderStatus > 3 && item.finishImgList && item.finishImgList.length" class="bg-white">
|
||||||
<view class="cu-bar solid-bottom">
|
<view class="cu-bar solid-bottom">
|
||||||
|
|
@ -110,7 +115,8 @@
|
||||||
</view>
|
</view>
|
||||||
<view class="grid col-3 grid-square flex-sub margin-top-sm">
|
<view class="grid col-3 grid-square flex-sub margin-top-sm">
|
||||||
<view class="bg-img" v-for="(imgUrl, index) in item.finishImgList" :key="index">
|
<view class="bg-img" v-for="(imgUrl, index) in item.finishImgList" :key="index">
|
||||||
<image :src="imgUrl" @tap="viewImage($event, [imgUrl])" :data-url="imgUrl" mode="aspectFill"></image>
|
<image :src="imgUrl" @tap="viewImage($event, [imgUrl])" :data-url="imgUrl" mode="aspectFill">
|
||||||
|
</image>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view>
|
<view>
|
||||||
|
|
@ -120,14 +126,15 @@
|
||||||
<view v-if="item.afterServiceRecordList && item.afterServiceRecordList.length" class="bg-white">
|
<view v-if="item.afterServiceRecordList && item.afterServiceRecordList.length" class="bg-white">
|
||||||
<view class="cu-bar">
|
<view class="cu-bar">
|
||||||
<view class="action bar-first-action">
|
<view class="action bar-first-action">
|
||||||
<text class="cuIcon-title text-main-color"></text> {{item.afterServiceRecordList[0].operType === 1 ? '退款记录' : '售后记录'}}
|
<text class="cuIcon-title text-main-color"></text>
|
||||||
|
{{item.afterServiceRecordList[0].operType === 1 ? '退款记录' : '售后记录'}}
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view v-for="(afterServiceRecord, afterServiceRecordIndex) in item.afterServiceRecordList" class="solid-top padding-tb">
|
<view v-for="(afterServiceRecord, afterServiceRecordIndex) in item.afterServiceRecordList">
|
||||||
<view v-if="afterServiceRecord.createBy == 1">
|
<view v-if="afterServiceRecord.createBy == 1" class="padding-tb 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="margin-top-sm">
|
<view class="flex justify-start align-end">
|
||||||
<text>退款申请:</text>
|
<text>退款申请:</text>
|
||||||
<uni-countdown :show-colon="false" :backgroundColor="'#eee'"
|
<uni-countdown :show-colon="false" :backgroundColor="'#eee'"
|
||||||
:day="$dateUtil.countDownDiff($dateUtil.addHours(afterServiceRecord.createTime, 24)).day"
|
:day="$dateUtil.countDownDiff($dateUtil.addHours(afterServiceRecord.createTime, 24)).day"
|
||||||
|
|
@ -136,17 +143,19 @@
|
||||||
:second="$dateUtil.countDownDiff($dateUtil.addHours(afterServiceRecord.createTime, 24)).seconds">
|
:second="$dateUtil.countDownDiff($dateUtil.addHours(afterServiceRecord.createTime, 24)).seconds">
|
||||||
</uni-countdown>
|
</uni-countdown>
|
||||||
</view>
|
</view>
|
||||||
<view class="margin-top-sm">
|
<view>
|
||||||
<text>退款金额:</text>
|
<text>退款金额:</text>
|
||||||
<text>{{afterServiceRecord.refund}}</text>
|
<text>{{afterServiceRecord.refund}}</text>
|
||||||
</view>
|
</view>
|
||||||
<view class="margin-top-sm">
|
<view>
|
||||||
<text>退款原因:</text>
|
<text>退款原因:</text>
|
||||||
<text>{{afterServiceRecord.customerReason}}</text>
|
<text>{{afterServiceRecord.customerReason}}</text>
|
||||||
</view>
|
</view>
|
||||||
<view class="grid col-3 grid-square flex-sub margin-top-sm">
|
<view class="grid col-3 grid-square flex-sub margin-top-sm">
|
||||||
<view class="bg-img" v-for="(imgObj, imgIndex) in afterServiceRecord.imgsList" :key="imgIndex">
|
<view class="bg-img" v-for="(imgObj, imgIndex) in afterServiceRecord.imgsList"
|
||||||
<image :src="imgObj.imgUrl" @tap="viewImage($event, [imgObj.imgUrl])" :data-url="imgObj.imgUrl" mode="aspectFill"></image>
|
:key="imgIndex" v-if="imgObj.imgUploadBy === 1">
|
||||||
|
<image :src="imgObj.imgUrl" @tap="viewImage($event, [imgObj.imgUrl])"
|
||||||
|
:data-url="imgObj.imgUrl" mode="aspectFill"></image>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
@ -164,65 +173,79 @@
|
||||||
<text>售后原因:</text>
|
<text>售后原因:</text>
|
||||||
<text>{{afterServiceRecord.customerReason}}</text>
|
<text>{{afterServiceRecord.customerReason}}</text>
|
||||||
</view>
|
</view>
|
||||||
<view class="margin-top-sm">
|
<view>
|
||||||
<text>完成操作:点击“处理完成”提交由客服回访!</text>
|
<text>完成操作:点击“处理完成”提交由客服回访!</text>
|
||||||
</view>
|
</view>
|
||||||
<view class="grid col-3 grid-square flex-sub margin-top-sm">
|
<view class="grid col-3 grid-square flex-sub margin-top-sm">
|
||||||
<view class="bg-img" v-for="(imgObj, imgIndex) in afterServiceRecord.imgsList" :key="imgIndex">
|
<view class="bg-img" v-for="(imgObj, imgIndex) in afterServiceRecord.imgsList"
|
||||||
<image :src="imgObj.imgUrl" @tap="viewImage($event, [imgObj.imgUrl])" :data-url="imgObj.imgUrl" mode="aspectFill"></image>
|
:key="imgIndex" v-if="imgObj.imgUploadBy === 1">
|
||||||
|
<image :src="imgObj.imgUrl" @tap="viewImage($event, [imgObj.imgUrl])"
|
||||||
|
:data-url="imgObj.imgUrl" mode="aspectFill"></image>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view v-if="afterServiceRecord.updateBy == 2">
|
<view v-if="afterServiceRecord.updateBy == 2" class="padding-tb 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="margin-top-sm">
|
<view class="margin-top-xs">
|
||||||
<text>退款申请:</text>
|
<text>师傅反馈结果:</text>
|
||||||
<uni-countdown :show-colon="false" :backgroundColor="'#eee'"
|
<text>{{afterServiceRecord.workerFeedbackResult === 1 ? '同意' : '拒绝'}}</text>
|
||||||
:day="$dateUtil.countDownDiff($dateUtil.addHours(afterServiceRecord.createTime, 24)).day"
|
|
||||||
:hour="$dateUtil.countDownDiff($dateUtil.addHours(afterServiceRecord.createTime, 24)).hour"
|
|
||||||
:minute="$dateUtil.countDownDiff($dateUtil.addHours(afterServiceRecord.createTime, 24)).min"
|
|
||||||
:second="$dateUtil.countDownDiff($dateUtil.addHours(afterServiceRecord.createTime, 24)).seconds">
|
|
||||||
</uni-countdown>
|
|
||||||
</view>
|
</view>
|
||||||
<view class="margin-top-sm">
|
<view v-if="afterServiceRecord.workerFeedbackResult === 1">
|
||||||
<text>退款金额:</text>
|
<text>同意退款金额:</text>
|
||||||
<text>{{afterServiceRecord.agreedRefund ? afterServiceRecord.agreedRefund : afterServiceRecord.refund}}</text>
|
<text>{{afterServiceRecord.agreedRefund}}</text>
|
||||||
</view>
|
</view>
|
||||||
<view class="margin-top-sm">
|
<view>
|
||||||
<text>退款原因:</text>
|
<text>师傅反馈:</text>
|
||||||
<text>{{afterServiceRecord.workerFeedbackReason}}</text>
|
<text v-if="afterServiceRecord.workerFeedbackReasonType === 1">客户原因</text>
|
||||||
|
<text v-else-if="afterServiceRecord.workerFeedbackReasonType === 2">师傅原因</text>
|
||||||
|
<text v-else>其他</text>
|
||||||
|
<text
|
||||||
|
v-if="afterServiceRecord.workerFeedbackReason">{{"," + afterServiceRecord.workerFeedbackReason}}</text>
|
||||||
</view>
|
</view>
|
||||||
<view class="grid col-3 grid-square flex-sub margin-top-sm">
|
<view class="grid col-3 grid-square flex-sub margin-top-sm">
|
||||||
<view class="bg-img" v-for="(imgObj, imgIndex) in afterServiceRecord.imgsList" :key="imgIndex">
|
<view class="bg-img" v-for="(imgObj, imgIndex) in afterServiceRecord.imgsList"
|
||||||
<image :src="imgObj.imgUrl" @tap="viewImage($event, [imgObj.imgUrl])" :data-url="imgObj.imgUrl" mode="aspectFill"></image>
|
:key="imgIndex" v-if="imgObj.imgUploadBy === 2">
|
||||||
|
<image :src="imgObj.imgUrl" @tap="viewImage($event, [imgObj.imgUrl])"
|
||||||
|
:data-url="imgObj.imgUrl" mode="aspectFill"></image>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view v-else-if="afterServiceRecord.operType === 2">
|
<view v-else-if="afterServiceRecord.operType === 2">
|
||||||
<view class="flex justify-start align-end">
|
<view class="margin-top-xs">
|
||||||
<text>待处理售后:</text>
|
<text>师傅反馈结果:</text>
|
||||||
<uni-countdown :show-colon="false" :backgroundColor="'#eee'"
|
<text>{{afterServiceRecord.workerFeedbackResult === 1 ? '同意' : '拒绝'}}</text>
|
||||||
:day="$dateUtil.countDownDiff($dateUtil.addHours(afterServiceRecord.createTime, 24)).day"
|
|
||||||
:hour="$dateUtil.countDownDiff($dateUtil.addHours(afterServiceRecord.createTime, 24)).hour"
|
|
||||||
:minute="$dateUtil.countDownDiff($dateUtil.addHours(afterServiceRecord.createTime, 24)).min"
|
|
||||||
:second="$dateUtil.countDownDiff($dateUtil.addHours(afterServiceRecord.createTime, 24)).seconds">
|
|
||||||
</uni-countdown>
|
|
||||||
</view>
|
</view>
|
||||||
<view>
|
<view>
|
||||||
<text>售后原因:</text>
|
<text>师傅反馈:</text>
|
||||||
<text>{{afterServiceRecord.workerFeedbackReason}}</text>
|
<text v-if="afterServiceRecord.workerFeedbackReasonType === 1">客户原因</text>
|
||||||
</view>
|
<text v-else-if="afterServiceRecord.workerFeedbackReasonType === 2">师傅原因</text>
|
||||||
<view class="margin-top-sm">
|
<text v-else>其他</text>
|
||||||
<text>完成操作:点击“处理完成”提交由客服回访!</text>
|
<text
|
||||||
|
v-if="afterServiceRecord.workerFeedbackReason">{{"," + afterServiceRecord.workerFeedbackReason}}</text>
|
||||||
</view>
|
</view>
|
||||||
<view class="grid col-3 grid-square flex-sub margin-top-sm">
|
<view class="grid col-3 grid-square flex-sub margin-top-sm">
|
||||||
<view class="bg-img" v-for="(imgObj, imgIndex) in afterServiceRecord.imgsList" :key="imgIndex">
|
<view class="bg-img" v-for="(imgObj, imgIndex) in afterServiceRecord.imgsList"
|
||||||
<image :src="imgObj.imgUrl" @tap="viewImage($event, [imgObj.imgUrl])" :data-url="imgObj.imgUrl" mode="aspectFill"></image>
|
:key="imgIndex" v-if="imgObj.imgUploadBy === 2">
|
||||||
|
<image :src="imgObj.imgUrl" @tap="viewImage($event, [imgObj.imgUrl])"
|
||||||
|
:data-url="imgObj.imgUrl" mode="aspectFill"></image>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
<view class="flex justify-end align-end margin-tb-sm"
|
||||||
|
v-if="afterServiceRecord.updateBy && afterServiceRecord.customerFinalCheck == null">
|
||||||
|
<button class="cu-btn sm bg-yellow margin-right-sm"
|
||||||
|
@click="afterServiceFinalCheck(afterServiceRecord.id, 1)">同意</button>
|
||||||
|
<button class="cu-btn sm bg-yellow margin-right-sm"
|
||||||
|
@click="afterServiceFinalCheck(afterServiceRecord.id, 0)">不同意</button>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view v-if="afterServiceRecord.customerFinalCheck != null" class="padding-tb solid-top">
|
||||||
|
<view class='cu-tag bg-main-color radius light'>客户最终确认</view>
|
||||||
|
<view class="margin-top-xs">{{afterServiceRecord.customerFinalCheck === 1 ? '同意' : '不同意'}}
|
||||||
|
</view>
|
||||||
|
<view class="text-red" v-if="afterServiceRecord.customerFinalCheck === 0">订单交由平台协商处理</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
@ -233,8 +256,8 @@
|
||||||
<view class="margin-top-xs">订单时间:{{servDetail.createTime}}</view>
|
<view class="margin-top-xs">订单时间:{{servDetail.createTime}}</view>
|
||||||
</view>
|
</view>
|
||||||
<!-- 底部操作栏 -->
|
<!-- 底部操作栏 -->
|
||||||
<view class="cu-bar bg-white tabbar border fixed-bottom-bar">
|
<view class="cu-bar tabbar margin-bottom-xl bg-white fixed-bottom-bar">
|
||||||
<view class="action" data-popup="orderManage" @click="togglePopup" v-if="servDetail.orderStatus < 2">
|
<view class="action" data-popup="orderManage" @click="togglePopup">
|
||||||
<view class="cuIcon-list"></view> 订单管理
|
<view class="cuIcon-list"></view> 订单管理
|
||||||
</view>
|
</view>
|
||||||
<view class="action" data-modal="sendUrgentMsgModal" @click="showModal">
|
<view class="action" data-modal="sendUrgentMsgModal" @click="showModal">
|
||||||
|
|
@ -246,28 +269,43 @@
|
||||||
<!-- <view class="bg-main-color submit">立即上门</view> -->
|
<!-- <view class="bg-main-color submit">立即上门</view> -->
|
||||||
</view>
|
</view>
|
||||||
<uni-popup ref="orderManage" type="bottom" @change="changePopupState">
|
<uni-popup ref="orderManage" type="bottom" @change="changePopupState">
|
||||||
<view class="cu-bar bg-white tabbar border fixed-bottom-bar">
|
<view class="cu-bar tabbar bg-white">
|
||||||
<view class="bg-white text-center" style="width: 100%;">
|
<view class="bg-white text-center" style="width: 100%; z-index: 99;">
|
||||||
<view v-for="(menu,index) in orderManageMenu" class="padding solid-bottom" :data-action="menu.action" @click="clickOrderManageMenu">
|
<view v-if="servDetail.orderStatus < 2" class="padding solid-bottom" @click="decideIfCancelOrder">
|
||||||
{{menu.name}}
|
取消订单
|
||||||
|
</view>
|
||||||
|
<view v-if="servDetail.orderStatus < 4" class="padding solid-bottom" @click="applyAfterService">
|
||||||
|
发起投诉
|
||||||
|
</view>
|
||||||
|
<view v-if="servDetail.orderStatus >= 4" class="padding solid-bottom" @click="applyAfterService">
|
||||||
|
发起售后/投诉
|
||||||
|
</view>
|
||||||
|
<view v-if="servDetail.orderStatus >= 2 || servDetail.orderStatus < 5" class="padding solid-bottom"
|
||||||
|
@click="applyForRefund">
|
||||||
|
退单退款
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
<view class="bg-white fixed-bottom-popup"></view>
|
||||||
</view>
|
</view>
|
||||||
</uni-popup>
|
</uni-popup>
|
||||||
<!-- 模态框 -->
|
<!-- 模态框 -->
|
||||||
<urgent-msg :show="sendUrgentMsgModal" @hideModal="hideModal"></urgent-msg>
|
<urgent-msg :show="sendUrgentMsgModal" @hideModal="hideModal"></urgent-msg>
|
||||||
<confirm-modal ref="confirmModal" :content="'是否确定取消订单?'" @confirm="cancelOrder"></confirm-modal>
|
<confirm-modal ref="confirmModal" :content="'是否确定取消订单?'" @confirm="cancelOrder"></confirm-modal>
|
||||||
|
<apply-after-service ref="applyAfterService" :data="servDetail"
|
||||||
|
@confirmFeedback="loadData(servDetail.orderMasterId)" @cancel="blurCurOrder"></apply-after-service>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import simpleProductPicked from '@/components/goods-card/simple-product-picked.vue';
|
import simpleProductPicked from '@/components/goods-card/simple-product-picked.vue';
|
||||||
import urgentMsg from '@/pages/my/components/modal/urgent-msg.vue';
|
import urgentMsg from '@/pages/my/components/modal/urgent-msg.vue';
|
||||||
|
import applyAfterService from '@/pages/my/components/modal/apply-after-service.vue';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
simpleProductPicked,
|
simpleProductPicked,
|
||||||
urgentMsg
|
urgentMsg,
|
||||||
|
applyAfterService
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
|
@ -281,10 +319,6 @@
|
||||||
servedValFields: ['standardName', 'standardNum', 'serverNum'],
|
servedValFields: ['standardName', 'standardNum', 'serverNum'],
|
||||||
process: '',
|
process: '',
|
||||||
ifShowPageMeta: false,
|
ifShowPageMeta: false,
|
||||||
orderManageMenu: [{
|
|
||||||
name: '取消订单',
|
|
||||||
action: 'decideIfCancelOrder'
|
|
||||||
}],
|
|
||||||
sendUrgentMsgModal: false
|
sendUrgentMsgModal: false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
@ -332,9 +366,6 @@
|
||||||
hideModal(e) {
|
hideModal(e) {
|
||||||
this[e.currentTarget.dataset.modal] = false;
|
this[e.currentTarget.dataset.modal] = false;
|
||||||
},
|
},
|
||||||
clickOrderManageMenu(e) {
|
|
||||||
this[e.currentTarget.dataset.action](e);
|
|
||||||
},
|
|
||||||
decideIfCancelOrder() {
|
decideIfCancelOrder() {
|
||||||
this.$refs.confirmModal.showModal();
|
this.$refs.confirmModal.showModal();
|
||||||
},
|
},
|
||||||
|
|
@ -362,6 +393,39 @@
|
||||||
icon: 'error'
|
icon: 'error'
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
async afterServiceFinalCheck(id, agreeStatus) {
|
||||||
|
let res = await this.$request.editAfterServiceRecord({
|
||||||
|
id: id,
|
||||||
|
customerFinalCheck: agreeStatus
|
||||||
|
});
|
||||||
|
if (res && res.code === 0) {
|
||||||
|
uni.showToast({
|
||||||
|
icon: 'success',
|
||||||
|
duration: 1000
|
||||||
|
})
|
||||||
|
this.loadData(this.servDetail.orderMasterId);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
uni.showToast({
|
||||||
|
icon: 'error',
|
||||||
|
duration: 1000
|
||||||
|
})
|
||||||
|
},
|
||||||
|
applyAfterService() {
|
||||||
|
this.showModalByRef('applyAfterService', this.servDetail, {
|
||||||
|
afterServiceType: 2,
|
||||||
|
toUpdateStatus: false
|
||||||
|
})
|
||||||
|
},
|
||||||
|
applyForRefund() {
|
||||||
|
this.showModalByRef('applyAfterService', this.servDetail, {
|
||||||
|
afterServiceType: 1,
|
||||||
|
toUpdateStatus: false
|
||||||
|
})
|
||||||
|
},
|
||||||
|
showModalByRef(refName, curOrder, params) {
|
||||||
|
this.$refs[refName].showModal(curOrder, params);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -372,4 +436,29 @@
|
||||||
margin-left: unset !important;
|
margin-left: unset !important;
|
||||||
font-size: 30rpx !important;
|
font-size: 30rpx !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.fixed-bottom-popup {
|
||||||
|
position: fixed !important;
|
||||||
|
width: 100% !important;
|
||||||
|
bottom: 0 !important;
|
||||||
|
margin-bottom: 0 !important;
|
||||||
|
z-index: 98;
|
||||||
|
padding-bottom: constant(safe-area-inset-bottom) !important;
|
||||||
|
padding-bottom: env(safe-area-inset-bottom) !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.cu-bar.tabbar .action {
|
||||||
|
font-size: 22rpx;
|
||||||
|
position: relative;
|
||||||
|
flex: 1;
|
||||||
|
text-align: center;
|
||||||
|
padding: 0;
|
||||||
|
display: block;
|
||||||
|
height: auto;
|
||||||
|
line-height: 1;
|
||||||
|
margin: 0;
|
||||||
|
background-color: inherit;
|
||||||
|
overflow: initial;
|
||||||
|
z-index: 99;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue