Commit 9b792156 by 张立顺

Merge branch 'SAAS+V5.5.0' of http://192.168.3.233:8090/saas_plus/dj-car-boutiqu…

…e-work-wechat into SAAS+V5.5.0
2 parents 9b9ec706 b0272735
......@@ -1127,8 +1127,10 @@ Component({
})
} else {
// 校验订单是否可撤销(在退款流程中无法撤销)
let refundStep = await commonApi.getOrderRefundStep({ orderCode: payid })
if (refundStep?.data == 'Y') return _this.showRefundAlert()
if (payid) { // 待报价支持撤销 没有orderCode 不做订单撤销校验
let refundStep = await commonApi.getOrderRefundStep({ orderCode: payid })
if (refundStep?.data == 'Y') return _this.showRefundAlert()
}
wx.showModal({
title: "",
content: "是否取撤销该工单?",
......@@ -1139,8 +1141,10 @@ Component({
if (r.confirm) {
// _this.showLoading('取消中...')
// 再次校验订单是否可撤销(退款流程中无法撤销)防止弹出二次确认时长时间未操作,未拦截导致订单状态变更了
let canRefundStep = await commonApi.getOrderRefundStep({ orderCode: payid })
if (canRefundStep?.data == 'Y') return _this.showRefundAlert()
if (payid) { // 待报价支持撤销 没有orderCode 不做订单撤销校验
let canRefundStep = await commonApi.getOrderRefundStep({ orderCode: payid })
if (canRefundStep?.data == 'Y') return _this.showRefundAlert()
}
_this.repeal(id);
}
},
......
......@@ -8,7 +8,8 @@ Component({
properties: {
examSubmitText: {
type: String
}
},
showClose: Boolean
},
/**
......
......@@ -54,6 +54,15 @@
font-weight: 500;
}
}
.close {
position: absolute;
top: var(--fontSize24);
right: var(--fontSize24);
.close-icon {
width: var(--fontSize40);
height: var(--fontSize40);
}
}
.modal-content {
margin: 0 var(--fontSize48) var(--fontSize48) var(--fontSize48);
text-align: center;
......
......@@ -5,7 +5,9 @@
<image class="icon" src="{{IMG_URL}}studyCenter/exam-submit-icon.png" mode=""/>
<view class="modal-main-title">是否已提交考试</view>
</view>
<view class="close" wx:if="{{showClose}}" bindtap="close">
<image class="close-icon" src="{{IMG_URL}}studyCenter/close.png" mode=""/>
</view>
<!-- 内容区域 -->
<view class="modal-content" wx:if="{{examSubmitText}}">{{examSubmitText}}</view>
......
......@@ -71,8 +71,12 @@ Page({
},
doAfterWebViewReturn() {
let modal = this.selectComponent('#examPopup')
modal.open()
this.setData({
examSubmitText: ''
}, () => {
let modal = this.selectComponent('#examPopup')
modal.open()
})
},
// 北森考试结果查询
examHandleConfirm() {
......@@ -88,9 +92,7 @@ Page({
if (code == 0) {
if (data) {
this.examHandleCancel()
setTimeout(() => {
this.getList(true)
}, 500)
this.getList(true)
} else {
this.setData({
examSubmitText: '未查询到结果,请稍后再试'
......
......@@ -21,4 +21,4 @@
<view class="end-text" wx:if="{{nothing && examList.length && !loadingList}}">已展示所有考试</view>
</scroll-view>
</view>
<exam-submit-popup id="examPopup" bindcancel="examHandleCancel" bindconfirm="examHandleConfirm" examSubmitText="{{examSubmitText}}" />
\ No newline at end of file
<exam-submit-popup id="examPopup" bindcancel="examHandleCancel" bindconfirm="examHandleConfirm" showClose="{{true}}" examSubmitText="{{examSubmitText}}" />
\ No newline at end of file
......@@ -152,20 +152,18 @@ Page({
})
if (confirmFlag) return
this.setData({confirmFlag: true})
commonApi.getBeisenExamResult({...examObj, invokeType: 0}).then(res => {
this.setData({
confirmFlag: false
})
let { code, data, message } = res
if (code == 0) {
commonApi.getBeisenExamResult({...examObj, invokeType: 0}).then(res => {
this.setData({
confirmFlag: false
})
let { code, data, message } = res
if (code == 0) {
if (data) {
this.examHandleCancel()
// 查询是否有下一个考试
this.getExamInfo()
setTimeout(() => {
this.getStaticData(true)
this.getList()
}, 500)
this.getStaticData(true)
this.getList()
} else {
this.setData({
examSubmitText: '未查询到结果,请稍后再试'
......
......@@ -698,8 +698,8 @@ Page({
if (scene && !orderObj.customerCouponId) {
console.log('没customerCouponId')
}
// 如果是错单补录 禁用掉保存功能 或待跟进订单/预约订单 禁用建档
if ((isErrorOrder && save) || (isAlreadyExistOrder && save)) return;
// 如果是错单补录 禁用掉保存功能 或待跟进订单/预约订单 或补录工单 禁用建档
if ((isErrorOrder && save) || (isAlreadyExistOrder && save) || (orderCreateType == 'additionRecordOrder' && save)) return;
let key = this.checkRequired(save, orderObj);
// debugger
......
......@@ -874,7 +874,7 @@
<!-- <image class="closeIcon" bindtap="closeTips" src="../../images/closeIcon.png" /> -->
</view>
<view class="btns-con">
<view class="save text-center {{ isErrorOrder || isAlreadyExistOrder ?'disabled':'' }}" bindtap="submit" data-save>建档</view>
<view class="save text-center {{ isErrorOrder || isAlreadyExistOrder || orderCreateType == 'additionRecordOrder' ? 'disabled':'' }}" bindtap="submit" data-save>建档</view>
<view class="confirm text-center" bindtap="submit">直接下单</view>
</view>
</view>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!