diff --git a/supervise-customer-ui/src/router/modules/codemenu.js b/supervise-customer-ui/src/router/modules/codemenu.js index cc7faab6..bf820a7c 100644 --- a/supervise-customer-ui/src/router/modules/codemenu.js +++ b/supervise-customer-ui/src/router/modules/codemenu.js @@ -19,8 +19,8 @@ const codemenu = [{ redirect: '/khzxcgsq/index', children: [{ path: '/khzxcgsq/index', - component: () => import('@/views/supervise/purchaseapplicationmanagement/purchaseapplicationmanagement.vue'), - name: 'purchaseapplicationmanagement', + component: () => import('@/views/supervise/purchaseapplicationmanagement/purchaseapplicationmanagementAdd.vue'), + name: 'PurchaseApplicationManagementAdd', meta: { title: '采购申请', noCache: true diff --git a/supervise-customer-ui/src/views/supervise/purchaseapplicationmanagement/purchaseapplicationmanagementAdd.vue b/supervise-customer-ui/src/views/supervise/purchaseapplicationmanagement/purchaseapplicationmanagementAdd.vue index c8ee3065..981924bd 100644 --- a/supervise-customer-ui/src/views/supervise/purchaseapplicationmanagement/purchaseapplicationmanagementAdd.vue +++ b/supervise-customer-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(() => { @@ -365,7 +366,7 @@ export default { } this.amountInTotal = aa } - + console.log(',,1111',this.formobj.code) if (this.formobj.code) { this.candownload = false @@ -394,7 +395,7 @@ export default { this.submitdisabled = false if (resp.success) { this.$message({ showClose: true, type: 'success', message: resp.msg }) - this.handleReturn('true') + this.handleReturn() } else { // 根据resp.code进行异常情况处理 }