|
|
|
@ -822,13 +822,20 @@ function openTemp() {
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
function handleApply() {
|
|
|
|
|
if (!loading.value) {
|
|
|
|
|
loading.value = true
|
|
|
|
|
ApplyAudit({ ids: [route.query.id] }).then(res => {
|
|
|
|
|
if (res.succeeded) {
|
|
|
|
|
createMessage.success('操作成功')
|
|
|
|
|
getDetail()
|
|
|
|
|
} else {
|
|
|
|
|
loading.value = false
|
|
|
|
|
}
|
|
|
|
|
}).catch(() => {
|
|
|
|
|
loading.value = false
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
function handleNew() {
|
|
|
|
|
go(`/invoiceapplyDetail?type=add`)
|
|
|
|
|
}
|
|
|
|
@ -863,13 +870,21 @@ function init() {
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
function handleWithdraw() {
|
|
|
|
|
if (!loading.value) {
|
|
|
|
|
loading.value = true
|
|
|
|
|
Withdraw({ ids: [route.query.id] }).then(res => {
|
|
|
|
|
if (res.succeeded) {
|
|
|
|
|
createMessage.success('操作成功')
|
|
|
|
|
getDetail()
|
|
|
|
|
} else {
|
|
|
|
|
loading.value = false
|
|
|
|
|
}
|
|
|
|
|
}).catch(()=>{
|
|
|
|
|
loading.value = false
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
function handleAddLabel(val) {
|
|
|
|
|
tempContent.value += '[' + val.displayName + ']'
|
|
|
|
|
}
|
|
|
|
|