|
|
@ -63,7 +63,7 @@
|
|
|
|
</a-menu>
|
|
|
|
</a-menu>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</a-dropdown>
|
|
|
|
</a-dropdown>
|
|
|
|
<div class="status" >
|
|
|
|
<div class="status">
|
|
|
|
<i class="icon-chenggong iconfont" style="font-size: 14px"></i>
|
|
|
|
<i class="icon-chenggong iconfont" style="font-size: 14px"></i>
|
|
|
|
{{ form.statusText }}
|
|
|
|
{{ form.statusText }}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
@ -822,12 +822,19 @@ 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,12 +870,20 @@ 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 + ']'
|
|
|
@ -1133,7 +1148,7 @@ function mergeByCurrency(arr) {
|
|
|
|
const result = {};
|
|
|
|
const result = {};
|
|
|
|
arr.forEach(item => {
|
|
|
|
arr.forEach(item => {
|
|
|
|
if (result[item.currency]) {
|
|
|
|
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))
|
|
|
|
result[item.currency].applyAmount = Number(result[item.currency].applyAmount.toFixed(2))
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
result[item.currency] = { currency: item.currency, applyAmount: Number(item.applyAmount.toFixed(2)) };
|
|
|
|
result[item.currency] = { currency: item.currency, applyAmount: Number(item.applyAmount.toFixed(2)) };
|
|
|
|