Browse Source

完善采购申请

master
yunuo970428 2 years ago
parent
commit
ed8e3eb539
  1. 4
      supervise-customer-ui/src/router/modules/codemenu.js
  2. 9
      supervise-customer-ui/src/views/supervise/purchaseapplicationmanagement/purchaseapplicationmanagementAdd.vue

4
supervise-customer-ui/src/router/modules/codemenu.js

@ -19,8 +19,8 @@ const codemenu = [{
redirect: '/khzxcgsq/index', redirect: '/khzxcgsq/index',
children: [{ children: [{
path: '/khzxcgsq/index', path: '/khzxcgsq/index',
component: () => import('@/views/supervise/purchaseapplicationmanagement/purchaseapplicationmanagement.vue'), component: () => import('@/views/supervise/purchaseapplicationmanagement/purchaseapplicationmanagementAdd.vue'),
name: 'purchaseapplicationmanagement', name: 'PurchaseApplicationManagementAdd',
meta: { meta: {
title: '采购申请', title: '采购申请',
noCache: true noCache: true

9
supervise-customer-ui/src/views/supervise/purchaseapplicationmanagement/purchaseapplicationmanagementAdd.vue

@ -280,8 +280,7 @@ export default {
}, },
created() {}, created() {},
methods: { methods: {
handleReturn(isreload) { handleReturn() {
if (isreload === 'true') this.$emit('reloadlist')
this.formobj = { this.formobj = {
sid: '', sid: '',
code: '', // code: '', //
@ -309,7 +308,9 @@ export default {
this.totalQuantity = '' this.totalQuantity = ''
this.amountInTotal = '' this.amountInTotal = ''
this.$refs['form_obj'].resetFields() this.$refs['form_obj'].resetFields()
this.$emit('doback') this.$store.dispatch('tagsView/delView', this.$route)
this.$router.go(-1)
// this.$emit('doback')
}, },
showAdd() { showAdd() {
this.$nextTick(() => { this.$nextTick(() => {
@ -394,7 +395,7 @@ export default {
this.submitdisabled = false this.submitdisabled = false
if (resp.success) { if (resp.success) {
this.$message({ showClose: true, type: 'success', message: resp.msg }) this.$message({ showClose: true, type: 'success', message: resp.msg })
this.handleReturn('true') this.handleReturn()
} else { } else {
// resp.code // resp.code
} }

Loading…
Cancel
Save