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