Commit debbdc47 by yuzhenWang

修复处理工单的返回路径的bug

parent 84a8eef3
...@@ -2,7 +2,12 @@ ...@@ -2,7 +2,12 @@
<div class="app-container"> <div class="app-container">
<div v-if="isLoadingStatus" /> <div v-if="isLoadingStatus" />
<div v-else> <div v-else>
<el-button v-if="scrmParams.showBack" style="margin-bottom:16px;" type="primary" @click="goBack"> <el-button
v-if="scrmParams.showBack"
style="margin-bottom: 16px"
type="primary"
@click="goBack"
>
返回 返回
</el-button> </el-button>
<el-card class="box-card"> <el-card class="box-card">
...@@ -343,10 +348,7 @@ export default { ...@@ -343,10 +348,7 @@ export default {
if (response.code === 200) { if (response.code === 200) {
// this.$router.push({ name: 'upcoming' }) // this.$router.push({ name: 'upcoming' })
// window.location.reload() // window.location.reload()
// this.getProcessNodeList() this.getProcessNodeList()
if (window.parent.goBackScrmCustomerServiceInfo) {
window.parent.goBackScrmCustomerServiceInfo()
}
} }
}) })
}) })
...@@ -355,6 +357,9 @@ export default { ...@@ -355,6 +357,9 @@ export default {
getAlertMessage() { getAlertMessage() {
if (this.processStructureValue.workOrder.is_end === 1) { if (this.processStructureValue.workOrder.is_end === 1) {
this.alertMessage = '当前工单已结束。' this.alertMessage = '当前工单已结束。'
if (this.scrmParams.goBackFunction === 'goBackScrmCustomerServiceInfo') {
window.parent.goBackScrmCustomerServiceInfo()
}
} }
}, },
activeOrderActive() { activeOrderActive() {
......
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