Commit 49e47de8 by 李伟康

Merge branch 'SAAS+V5.5.0' of http://192.168.3.233:8090/glsx/gl_tape into SAAS+V5.5.0

2 parents aac14ea9 d46289da
......@@ -20,8 +20,29 @@
</view>
<view class="order-card-bottom-box">
<view class="info-box">
<view class="order-list align-center" v-for="(item, sindex) in orderCardDetail.deliveryUserId ? pointsMultiObj : orderObj" :key="sindex">
<view class="order flex align-center">
<view class="order-list align-center" v-for="(item, sindex) in orderCardDetail.deliveryId ? pointsMultiObj : orderObj" :key="sindex">
<view v-if="item.key == 'remark' || item.key == 'payTime' || item.key == 'createdTime'">
<view class="order flex align-center" v-if="item.key == 'remark' && orderCardDetail.orderStatus == '-1'">
<view class="order-label">{{ item.label }}</view>
<view class="order-value">
<view>{{ orderCardDetail[item.key] || '' }}</view>
</view>
</view>
<view class="order flex align-center" v-if="item.key == 'payTime' && (orderCardDetail.orderStatus == '3' || orderCardDetail.orderStatus == '5')">
<view class="order-label">{{ item.label }}</view>
<view class="order-value">
<view>{{ orderCardDetail[item.key] || '' }}</view>
</view>
</view>
<!-- &&( item.orderStatus == '3'||item.orderStatus =='5') -->
<view class="order flex align-center" v-if="item.key == 'createdTime'">
<view class="order-label">{{ item.label }}</view>
<view class="order-value">
<view>{{ orderCardDetail[item.key] || '' }}</view>
</view>
</view>
</view>
<view class="order flex align-center" v-else>
<view class="order-label">{{ item.label }}</view>
<view class="order-value flex">
<view v-if="item.arr" class="flex">
......@@ -62,15 +83,15 @@
{{ orderCardDetail.refundAmount }}
</view>
<!-- 已录单未签名 -->
<!-- <view wx:if="{{(item.orderStatus == '3' && item.equityOrderStatus == '0') || (item.orderStatus == '5' && item.equityOrderStatus == '0')}}" class="orange-txt">
<!-- <view v-if="{{(item.orderStatus == '3' && item.equityOrderStatus == '0') || (item.orderStatus == '5' && item.equityOrderStatus == '0')}}" class="orange-txt">
<image class="icon-info" src="/packageEquity/images/icon-info.png"></image>
订单已支付,未录入权益合同
</view>
<view wx:elif="{{item.orderStatus == '3' && item.equityOrderStatus == '2'}}" class="orange-txt">
<view v-elif="{{item.orderStatus == '3' && item.equityOrderStatus == '2'}}" class="orange-txt">
<image class="icon-info" src="/packageEquity/images/icon-info.png"></image>
订单已支付,尚未签名确认
</view> -->
<!-- <view wx:else>创建时间:{{item.createdTime}}</view> -->
<!-- <view v-else>创建时间:{{item.createdTime}}</view> -->
</view>
</view>
<!-- 施工技师 -->
......@@ -117,6 +138,7 @@
</view>
</view>
<NoticePopup ref="notice" title="提示" text="是否撤销该笔客户工单,撤销后客户工单为「已撤销」状态,不再统计订单数和订单金额。" type="warning"></NoticePopup>
<NoticePopup ref="reportNotice" :title="noticeObj.title" :text="noticeObj.text" :type="noticeObj.type || 'success'" :buttons="noticeObj.buttons"></NoticePopup>
<ContractPopup ref="contractPopupRef" @onConfirm="onConfirm"></ContractPopup>
<PublishPopup ref="defeatOrderPopup" popupClass="defeatOrderPopup" type="center" :showClose="true" :isMaskClick="false" title="战败原因">
<template #content>
......@@ -440,7 +462,8 @@ export default {
'-1': '去报价',
5: '去处理'
},
textareaValue: ''
textareaValue: '',
noticeObj: {}
}
},
mounted() {
......@@ -501,29 +524,35 @@ export default {
},
// 撤销工单方法
revokeOrder() {
const that = this
// 配置弹窗按钮
this.$refs.notice.buttonsList = [
that.$refs.notice.buttonsList = [
{
text: '取消',
type: 'default',
callback: () => {
this.transmissionOfData = null
this.$refs.notice.close()
that.transmissionOfData = null
that.$refs.notice.close()
}
},
{
text: '撤销',
type: 'primary',
callback: async () => {
// 校验订单是否可撤销(在退款流程中无法撤销)
let refundStep = await uni.$api.equityApi.getOrderRefundStep({ orderCode: this.orderCardDetail.payId })
if (refundStep?.data == 'Y') return _this.showRefundAlert()
this.repeal(this.orderCardDetail.id)
console.log(that.orderCardDetail)
if (that.orderCardDetail.payId) {
// 校验订单是否可撤销(在退款流程中无法撤销)
let refundStep = await uni.$api.equityApi.getOrderRefundStep({ orderCode: that.orderCardDetail.payId })
if (refundStep?.data == 'Y') return _this.showRefundAlert()
that.repeal(that.orderCardDetail.id)
} else {
that.repeal(that.orderCardDetail.id)
}
}
}
]
// 打开弹窗
this.$refs.notice.open()
that.$refs.notice.open()
},
//修改客户信息
jumpUpdate() {
......@@ -554,12 +583,31 @@ export default {
},
showRefundAlert(type) {
const text = type == 'error' ? '订单已发起退款,禁止标记为错误工单!如需标记错误请联系总部运营。' : '订单已发起退款,禁止撤销!如需撤销请联系总部运营。'
uni.showModal({
title: '提示',
content: text,
showCancel: false,
confirmText: '好的'
})
let title = '提示',
btnText = '好的',
callbackFun = () => {}
this.noticeObj = {
title,
text: text,
type: 'warning',
buttons: [
{
text: btnText,
type: 'primary',
callback: callbackFun
}
]
}
this.$nextTick(() => this.$refs.reportNotice.open())
// uni.showModal({
// title: '提示',
// content: text,
// showCancel: false,
// confirmText: '好的'
// })
},
openNotice(message, params) {
uni.hideLoading()
},
repeal(id, revokeReason) {
uni.showLoading({
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!