Browse Source

完善采购申请

master
yunuo970428 2 years ago
parent
commit
1c83204dc4
  1. 8
      base-ui/src/router/index.js
  2. 18
      base-ui/src/views/supervise/purchaseapplicationmanagement/purchaseapplicationmanagementAdd.vue

8
base-ui/src/router/index.js

@ -61,10 +61,10 @@ export const constantRoutes = [
meta: { title: '客户中心' }, meta: { title: '客户中心' },
children: [ children: [
{ {
path: '/supervise/purchaseapplicationmanagement/purchaseapplicationmanagement', path: '/supervise/purchaseapplicationmanagement/purchaseapplicationmanagementAdd',
component: () => import('@/views/supervise/purchaseapplicationmanagement/purchaseapplicationmanagement.vue'), component: () => import('@/views/supervise/purchaseapplicationmanagement/purchaseapplicationmanagementAdd.vue'),
name: 'purchaseapplicationmanagement', name: 'PurchaseApplicationManagementAdd',
meta: {title: '采购申请管理',noCache: true,} meta: { title: '采购申请管理',noCache: true }
}, },
{ {
path: '/supervise/supplierbankinfo/supplierbankinfo', path: '/supervise/supplierbankinfo/supplierbankinfo',

18
base-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(() => {
@ -322,9 +323,7 @@ export default {
this.$refs['form_obj'].clearValidate() this.$refs['form_obj'].clearValidate()
}) })
this.viewTitle = '【审核编号】' this.viewTitle = '【审核编号】'
req req.fetchBySid(row.sid).then(resp => {
.fetchBySid(row.sid)
.then(resp => {
if (resp.success) { if (resp.success) {
this.formobj = resp.data this.formobj = resp.data
if (this.formobj.pros.length > 0) { if (this.formobj.pros.length > 0) {
@ -365,7 +364,6 @@ export default {
} }
this.amountInTotal = aa this.amountInTotal = aa
} }
console.log(',,1111',this.formobj.code) console.log(',,1111',this.formobj.code)
if (this.formobj.code) { if (this.formobj.code) {
this.candownload = false this.candownload = false
@ -388,13 +386,11 @@ export default {
this.$refs['form_obj'].validate(valid => { this.$refs['form_obj'].validate(valid => {
if (valid) { if (valid) {
this.submitdisabled = true this.submitdisabled = true
req req.saveOrUpdate(this.formobj).then(resp => {
.saveOrUpdate(this.formobj)
.then(resp => {
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