diff --git a/base-ui/src/router/index.js b/base-ui/src/router/index.js index aca98c3d..797a7ac7 100644 --- a/base-ui/src/router/index.js +++ b/base-ui/src/router/index.js @@ -61,10 +61,10 @@ export const constantRoutes = [ meta: { title: '客户中心' }, children: [ { - path: '/supervise/purchaseapplicationmanagement/purchaseapplicationmanagement', - component: () => import('@/views/supervise/purchaseapplicationmanagement/purchaseapplicationmanagement.vue'), - name: 'purchaseapplicationmanagement', - meta: {title: '采购申请管理',noCache: true,} + path: '/supervise/purchaseapplicationmanagement/purchaseapplicationmanagementAdd', + component: () => import('@/views/supervise/purchaseapplicationmanagement/purchaseapplicationmanagementAdd.vue'), + name: 'PurchaseApplicationManagementAdd', + meta: { title: '采购申请管理',noCache: true } }, { path: '/supervise/supplierbankinfo/supplierbankinfo', diff --git a/base-ui/src/views/supervise/purchaseapplicationmanagement/purchaseapplicationmanagementAdd.vue b/base-ui/src/views/supervise/purchaseapplicationmanagement/purchaseapplicationmanagementAdd.vue index c8ee3065..6f5bae60 100644 --- a/base-ui/src/views/supervise/purchaseapplicationmanagement/purchaseapplicationmanagementAdd.vue +++ b/base-ui/src/views/supervise/purchaseapplicationmanagement/purchaseapplicationmanagementAdd.vue @@ -280,8 +280,7 @@ export default { }, created() {}, methods: { - handleReturn(isreload) { - if (isreload === 'true') this.$emit('reloadlist') + handleReturn() { this.formobj = { sid: '', code: '', // 单号 @@ -309,7 +308,9 @@ export default { this.totalQuantity = '' this.amountInTotal = '' this.$refs['form_obj'].resetFields() - this.$emit('doback') + this.$store.dispatch('tagsView/delView', this.$route) + this.$router.go(-1) + // this.$emit('doback') }, showAdd() { this.$nextTick(() => { @@ -322,9 +323,7 @@ export default { this.$refs['form_obj'].clearValidate() }) this.viewTitle = '【审核编号】' - req - .fetchBySid(row.sid) - .then(resp => { + req.fetchBySid(row.sid).then(resp => { if (resp.success) { this.formobj = resp.data if (this.formobj.pros.length > 0) { @@ -365,7 +364,6 @@ export default { } this.amountInTotal = aa } - console.log(',,1111',this.formobj.code) if (this.formobj.code) { this.candownload = false @@ -388,13 +386,11 @@ export default { this.$refs['form_obj'].validate(valid => { if (valid) { this.submitdisabled = true - req - .saveOrUpdate(this.formobj) - .then(resp => { + req.saveOrUpdate(this.formobj).then(resp => { this.submitdisabled = false if (resp.success) { this.$message({ showClose: true, type: 'success', message: resp.msg }) - this.handleReturn('true') + this.handleReturn() } else { // 根据resp.code进行异常情况处理 }