Commit 1639c264 authored by Damon's avatar Damon

feat: 完工页跳转订单质量页提醒

parent be843564
...@@ -105,7 +105,7 @@ ...@@ -105,7 +105,7 @@
text-overflow: ellipsis; text-overflow: ellipsis;
} }
.progress{ .progress{
flex:5; flex:7;
text-align: left; text-align: left;
padding-right: 10rpx; padding-right: 10rpx;
......
...@@ -133,9 +133,9 @@ ...@@ -133,9 +133,9 @@
}, },
{ {
pathName: 'portrait/index', pathName: 'portrait/index',
title: '用户画像', title: '订单数据',
value: '', value: '',
icon: 'wodeziliao.png', icon: 'dingdanshuju.png',
imageStyle: 'width:32rpx;height:32rpx' imageStyle: 'width:32rpx;height:32rpx'
}, },
{ {
......
...@@ -402,7 +402,7 @@ const actions = (name, pass, type, submit) => { ...@@ -402,7 +402,7 @@ const actions = (name, pass, type, submit) => {
confirmText: '确定', confirmText: '确定',
action: 'nextAction', action: 'nextAction',
cancelText: '取消', cancelText: '取消',
cancelAction: 'closeCheckResult', cancelAction: 'closeResult',
}, },
} }
if (name === 'partnerInspectItem') { if (name === 'partnerInspectItem') {
...@@ -880,6 +880,9 @@ export default { ...@@ -880,6 +880,9 @@ export default {
this.completeCheck.result = checkResult this.completeCheck.result = checkResult
return pass return pass
},
closeResult() {
}, },
// 检查结果窗口取消回调 // 检查结果窗口取消回调
closeCheckResult() { closeCheckResult() {
...@@ -1042,22 +1045,7 @@ export default { ...@@ -1042,22 +1045,7 @@ export default {
if (this.inGuaranteePeriod === 'Y') { if (this.inGuaranteePeriod === 'Y') {
this.$u.api.inOrderFinish(this.orderId).then((res) => { this.$u.api.inOrderFinish(this.orderId).then((res) => {
if (res.code == 200) { if (res.code == 200) {
this.$refs.uToast.show({ this.successTips()
title: '提交成功',
type: 'success',
callback: () => {
if (this.completeBack) {
// 从订单管理和浏览记录进来
uni.navigateBack({
delta: this.completeBack,
})
} else {
uni.reLaunch({
url: '/pages/index/order?type=audit',
})
}
},
})
} else { } else {
this.$refs.uToast.show({ this.$refs.uToast.show({
title: res.data, title: res.data,
...@@ -1070,22 +1058,7 @@ export default { ...@@ -1070,22 +1058,7 @@ export default {
.outOrderFinish({ customerPayType: 'CASH' }, this.orderId) .outOrderFinish({ customerPayType: 'CASH' }, this.orderId)
.then((res) => { .then((res) => {
if (res.code == 200) { if (res.code == 200) {
this.$refs.uToast.show({ this.successTips()
title: '提交成功',
type: 'success',
callback: () => {
if (this.completeBack) {
// 从订单管理和浏览记录进来
uni.navigateBack({
delta: this.completeBack,
})
} else {
uni.reLaunch({
url: '/pages/index/order?type=audit',
})
}
},
})
} else { } else {
this.$refs.uToast.show({ this.$refs.uToast.show({
title: res.data, title: res.data,
...@@ -1102,6 +1075,33 @@ export default { ...@@ -1102,6 +1075,33 @@ export default {
} }
}) })
}, },
// 提交成功后续
successTips() {
uni.showModal({
title: '提交成功',
content: '是否查看本单服务质量详情?',
confirmText: '好的',
cancelText: '算了',
success: function (res) {
if (res.confirm) {
uni.reLaunch({
url: '/pages/mine/portrait/index',
})
} else if (res.cancel) {
if (this.completeBack) {
// 从订单管理和浏览记录进来
uni.navigateBack({
delta: this.completeBack,
})
} else {
uni.reLaunch({
url: '/pages/index/order?type=audit',
})
}
}
}
})
},
calMaterialCraftListAmount(arr) { calMaterialCraftListAmount(arr) {
let amount = 0 let amount = 0
if (arr) { if (arr) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment