请款bug
This commit is contained in:
@@ -55,7 +55,7 @@ export function cancelRequestFund(num) {
|
|||||||
url: '',
|
url: '',
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data: {
|
data: {
|
||||||
type: '2',
|
type: '1',
|
||||||
name: '采购管理_离线合同_请款_删除数据',
|
name: '采购管理_离线合同_请款_删除数据',
|
||||||
param: `离线合同请款流水号=${num}`
|
param: `离线合同请款流水号=${num}`
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -65,7 +65,7 @@ export function cancelRequestFund(num1) {
|
|||||||
url: '',
|
url: '',
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data: {
|
data: {
|
||||||
type: '2',
|
type: '1',
|
||||||
name: '采购管理_采购请款表_删除数据',
|
name: '采购管理_采购请款表_删除数据',
|
||||||
param: '采购请款流水号=' + num1
|
param: '采购请款流水号=' + num1
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -312,9 +312,11 @@ export default {
|
|||||||
}).then(() => {
|
}).then(() => {
|
||||||
cancelRequestFund(row.离线合同请款流水号).then(response => {
|
cancelRequestFund(row.离线合同请款流水号).then(response => {
|
||||||
if (response.data[0].result === '1') {
|
if (response.data[0].result === '1') {
|
||||||
this.$message.success('取消成功')
|
this.$message.success('操作成功')
|
||||||
this.searchTable1()
|
this.searchTable1()
|
||||||
} else { this.$message.error('取消失败') }
|
} else if (response.data[0].result === '已审批') {
|
||||||
|
this.$message.error('已审批,操作失败')
|
||||||
|
} else { this.$message.error('操作失败') }
|
||||||
})
|
})
|
||||||
}).catch(() => {
|
}).catch(() => {
|
||||||
this.$message({
|
this.$message({
|
||||||
|
|||||||
@@ -352,6 +352,9 @@ export default {
|
|||||||
if (response.data[0].result === '1') {
|
if (response.data[0].result === '1') {
|
||||||
this.$message.success('操作成功')
|
this.$message.success('操作成功')
|
||||||
this.searchTable1()
|
this.searchTable1()
|
||||||
|
} else if (response.data[0].result === '已审批') {
|
||||||
|
this.searchTable1()
|
||||||
|
this.$message.error('已审批,操作失败')
|
||||||
} else { this.$message.error('操作失败') }
|
} else { this.$message.error('操作失败') }
|
||||||
})
|
})
|
||||||
}).catch(() => {
|
}).catch(() => {
|
||||||
|
|||||||
Reference in New Issue
Block a user