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: '客户中心' },
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',

18
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
}

Loading…
Cancel
Save