This commit is contained in:
chenjianan
2018-12-25 11:03:27 +08:00
parent 5fd49aa262
commit a2361cfd07

View File

@@ -197,6 +197,7 @@ export default {
},
methods: {
fetchData() {
this.person = []
initBuyer().then(response => {
for (let i = 0; i < response.data.length; i++) {
this.person.push({
@@ -206,6 +207,7 @@ export default {
})
}
})
this.contractNum = []
initContract().then(response => {
for (let i = 0; i < response.data.length; i++) {
this.contractNum.push({
@@ -244,7 +246,12 @@ export default {
if (response.data[0].result === '1') {
this.$message.success('审批成功')
this.dialogVisible3 = false
this.fetchData() // 重新初始化
this.contractNumValue = ''
this.personValue = ''
this.supplierName = ''
this.searchTable1()
this.returns = ''
} else { this.$message.error('审批失败') }
})
} else {