请款bug

This commit is contained in:
chenjianan
2019-03-06 18:40:47 +08:00
parent 33e012b74d
commit 625c45317c
4 changed files with 9 additions and 4 deletions

View File

@@ -55,7 +55,7 @@ export function cancelRequestFund(num) {
url: '',
method: 'post',
data: {
type: '2',
type: '1',
name: '采购管理_离线合同_请款_删除数据',
param: `离线合同请款流水号=${num}`
}

View File

@@ -65,7 +65,7 @@ export function cancelRequestFund(num1) {
url: '',
method: 'post',
data: {
type: '2',
type: '1',
name: '采购管理_采购请款表_删除数据',
param: '采购请款流水号=' + num1
}

View File

@@ -312,9 +312,11 @@ export default {
}).then(() => {
cancelRequestFund(row.离线合同请款流水号).then(response => {
if (response.data[0].result === '1') {
this.$message.success('取消成功')
this.$message.success('操作成功')
this.searchTable1()
} else { this.$message.error('取消失败') }
} else if (response.data[0].result === '已审批') {
this.$message.error('已审批,操作失败')
} else { this.$message.error('操作失败') }
})
}).catch(() => {
this.$message({

View File

@@ -352,6 +352,9 @@ export default {
if (response.data[0].result === '1') {
this.$message.success('操作成功')
this.searchTable1()
} else if (response.data[0].result === '已审批') {
this.searchTable1()
this.$message.error('已审批,操作失败')
} else { this.$message.error('操作失败') }
})
}).catch(() => {