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