采购请款审批
This commit is contained in:
@@ -246,6 +246,7 @@ export default {
|
||||
this.searchTable()
|
||||
},
|
||||
searchTable() {
|
||||
this.tableData = []
|
||||
initApproval1(this.pageCurrent, this.pageSize, 1).then(response => {
|
||||
if (response.data.rows.length !== 0) {
|
||||
for (let i = 0; i < response.data.rows.length; i++) {
|
||||
@@ -358,7 +359,7 @@ export default {
|
||||
execMaterials(row.采购计划请款流水号, 1, '通过', this.id, 1).then(response => {
|
||||
if (response.data[0].result === '1') {
|
||||
this.$message.success('执行成功')
|
||||
this.searchTable3()
|
||||
this.searchTable()
|
||||
} else { this.$message.error('执行失败') }
|
||||
})
|
||||
}
|
||||
@@ -385,7 +386,7 @@ export default {
|
||||
execMaterials(row.采购计划请款流水号, 2, value, this.id, 1).then(response => {
|
||||
if (response.data[0].result === '1') {
|
||||
this.$message.success('执行成功')
|
||||
this.searchTable3()
|
||||
this.searchTable()
|
||||
} else { this.$message.error('执行失败') }
|
||||
})
|
||||
}
|
||||
|
||||
@@ -258,6 +258,7 @@ export default {
|
||||
this.searchTable3()
|
||||
},
|
||||
searchTable() {
|
||||
this.tableData = []
|
||||
initApproval1(this.pageCurrent, this.pageSize, 2).then(response => {
|
||||
if (response.data.rows.length !== 0) {
|
||||
for (let i = 0; i < response.data.rows.length; i++) {
|
||||
@@ -390,14 +391,14 @@ export default {
|
||||
execApprovalOffline(row.离线合同请款流水号, 1, '通过', this.id, 2).then(response => {
|
||||
if (response.data[0].result === '1') {
|
||||
this.$message.success('执行成功')
|
||||
this.searchTable2()
|
||||
this.searchTable()
|
||||
} else { this.$message.error('执行失败') }
|
||||
})
|
||||
} else if (row.类别 === '备料') {
|
||||
execMaterials(row.采购计划请款流水号, 1, '通过', this.id, 2).then(response => {
|
||||
if (response.data[0].result === '1') {
|
||||
this.$message.success('执行成功')
|
||||
this.searchTable3()
|
||||
this.searchTable()
|
||||
} else { this.$message.error('执行失败') }
|
||||
})
|
||||
}
|
||||
@@ -424,14 +425,14 @@ export default {
|
||||
execApprovalOffline(row.离线合同请款流水号, 2, value, this.id, 2).then(response => {
|
||||
if (response.data[0].result === '1') {
|
||||
this.$message.success('执行成功')
|
||||
this.searchTable2()
|
||||
this.searchTable()
|
||||
} else { this.$message.error('执行失败') }
|
||||
})
|
||||
} else if (row.类别 === '备料') {
|
||||
execMaterials(row.采购计划请款流水号, 2, value, this.id, 2).then(response => {
|
||||
if (response.data[0].result === '1') {
|
||||
this.$message.success('执行成功')
|
||||
this.searchTable3()
|
||||
this.searchTable()
|
||||
} else { this.$message.error('执行失败') }
|
||||
})
|
||||
}
|
||||
@@ -451,7 +452,7 @@ export default {
|
||||
execApprovalOffline(row.离线合同请款流水号, 1, '通过', this.id, 2).then(response => {
|
||||
if (response.data[0].result === '1') {
|
||||
this.$message.success('执行成功')
|
||||
this.searchTable2()
|
||||
this.searchTable()
|
||||
} else { this.$message.error('执行失败') }
|
||||
})
|
||||
}).catch(() => {
|
||||
@@ -469,7 +470,7 @@ export default {
|
||||
execApprovalOffline(row.离线合同请款流水号, 2, value, this.id, 2).then(response => {
|
||||
if (response.data[0].result === '1') {
|
||||
this.$message.success('执行成功')
|
||||
this.searchTable2()
|
||||
this.searchTable()
|
||||
} else { this.$message.error('执行失败') }
|
||||
})
|
||||
}).catch(() => {
|
||||
@@ -488,7 +489,7 @@ export default {
|
||||
execMaterials(row.采购计划请款流水号, 1, '通过', this.id, 2).then(response => {
|
||||
if (response.data[0].result === '1') {
|
||||
this.$message.success('执行成功')
|
||||
this.searchTable3()
|
||||
this.searchTable()
|
||||
} else { this.$message.error('执行失败') }
|
||||
})
|
||||
}).catch(() => {
|
||||
@@ -506,7 +507,7 @@ export default {
|
||||
execMaterials(row.采购计划请款流水号, 2, value, this.id, 2).then(response => {
|
||||
if (response.data[0].result === '1') {
|
||||
this.$message.success('执行成功')
|
||||
this.searchTable3()
|
||||
this.searchTable()
|
||||
} else { this.$message.error('执行失败') }
|
||||
})
|
||||
}).catch(() => {
|
||||
|
||||
Reference in New Issue
Block a user