|
|
|
@ -63,7 +63,7 @@
|
|
|
|
|
</a-menu>
|
|
|
|
|
</template>
|
|
|
|
|
</a-dropdown>
|
|
|
|
|
<div class="status" >
|
|
|
|
|
<div class="status">
|
|
|
|
|
<i class="icon-chenggong iconfont" style="font-size: 14px"></i>
|
|
|
|
|
{{ form.statusText }}
|
|
|
|
|
</div>
|
|
|
|
@ -822,12 +822,19 @@ function openTemp() {
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
function handleApply() {
|
|
|
|
|
ApplyAudit({ ids: [route.query.id] }).then(res => {
|
|
|
|
|
if (res.succeeded) {
|
|
|
|
|
createMessage.success('操作成功')
|
|
|
|
|
getDetail()
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
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,12 +870,20 @@ function init() {
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
function handleWithdraw() {
|
|
|
|
|
Withdraw({ ids: [route.query.id] }).then(res => {
|
|
|
|
|
if (res.succeeded) {
|
|
|
|
|
createMessage.success('操作成功')
|
|
|
|
|
getDetail()
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
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 + ']'
|
|
|
|
@ -1133,7 +1148,7 @@ function mergeByCurrency(arr) {
|
|
|
|
|
const result = {};
|
|
|
|
|
arr.forEach(item => {
|
|
|
|
|
if (result[item.currency]) {
|
|
|
|
|
result[item.currency].applyAmount += item.applyAmount ;
|
|
|
|
|
result[item.currency].applyAmount += item.applyAmount;
|
|
|
|
|
result[item.currency].applyAmount = Number(result[item.currency].applyAmount.toFixed(2))
|
|
|
|
|
} else {
|
|
|
|
|
result[item.currency] = { currency: item.currency, applyAmount: Number(item.applyAmount.toFixed(2)) };
|
|
|
|
|