|
|
@@ -658,17 +658,22 @@ export default {
|
|
|
if (res.code == 200) {
|
|
|
this.$toast.success('提交成功');
|
|
|
this.rejectReasonShow = false;
|
|
|
- this.getDetail();
|
|
|
- this.$dialog
|
|
|
- .confirm({
|
|
|
- title: '系统提示',
|
|
|
- message: '提交成功',
|
|
|
- showCancelButton: false,
|
|
|
- })
|
|
|
- .then(() => {
|
|
|
- this.wx.closeWindow();
|
|
|
- });
|
|
|
- // this.onClickLeft();
|
|
|
+ // 从审批列表过来的原路返回
|
|
|
+ if (this.$router.query.source && this.$router.query.source == 'newStoreApprovalList') {
|
|
|
+ this.onClickLeft();
|
|
|
+ } else {
|
|
|
+ // 从提醒系统过来的直接关闭当前窗口
|
|
|
+ this.getDetail();
|
|
|
+ this.$dialog
|
|
|
+ .confirm({
|
|
|
+ title: '系统提示',
|
|
|
+ message: '提交成功',
|
|
|
+ showCancelButton: false,
|
|
|
+ })
|
|
|
+ .then(() => {
|
|
|
+ this.wx.closeWindow();
|
|
|
+ });
|
|
|
+ }
|
|
|
} else {
|
|
|
this.$toast.fail(res.msg);
|
|
|
}
|