|
|
@ -59,7 +59,7 @@
|
|
|
|
</div> -->
|
|
|
|
</div> -->
|
|
|
|
<div>
|
|
|
|
<div>
|
|
|
|
<a-popconfirm title="确定申请开票吗?" ok-text="是" cancel-text="否" @confirm="handleIssue">
|
|
|
|
<a-popconfirm title="确定申请开票吗?" ok-text="是" cancel-text="否" @confirm="handleIssue">
|
|
|
|
<a-button v-repeat type="link" v-if="route.query.id && form.status!='已开票'">
|
|
|
|
<a-button v-repeat type="link" v-if="route.query.id && form.status != '已开票'">
|
|
|
|
<span class="iconfont icon-touzijilu"></span>开票
|
|
|
|
<span class="iconfont icon-touzijilu"></span>开票
|
|
|
|
</a-button>
|
|
|
|
</a-button>
|
|
|
|
</a-popconfirm>
|
|
|
|
</a-popconfirm>
|
|
|
@ -94,7 +94,7 @@
|
|
|
|
</editCompent>
|
|
|
|
</editCompent>
|
|
|
|
<editCompent :showEdit="false" ref="editCompentRef" label="开票类型:">
|
|
|
|
<editCompent :showEdit="false" ref="editCompentRef" label="开票类型:">
|
|
|
|
<template #text>
|
|
|
|
<template #text>
|
|
|
|
<span>正票</span>
|
|
|
|
<span>{{ form.invoiceType }}</span>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</editCompent>
|
|
|
|
</editCompent>
|
|
|
|
<editCompent ref="editCompentRef" label="开票日期:">
|
|
|
|
<editCompent ref="editCompentRef" label="开票日期:">
|
|
|
@ -390,7 +390,7 @@
|
|
|
|
<a-form :label-col="{ span: 4 }" :wrapper-col="{ span: 20 }">
|
|
|
|
<a-form :label-col="{ span: 4 }" :wrapper-col="{ span: 20 }">
|
|
|
|
<a-form-item label="冲红原因">
|
|
|
|
<a-form-item label="冲红原因">
|
|
|
|
<a-select ref="select" v-model:value="redForm.chyyDm" style="width: 100%">
|
|
|
|
<a-select ref="select" v-model:value="redForm.chyyDm" style="width: 100%">
|
|
|
|
<a-select-option value="00">直接冲红</a-select-option>
|
|
|
|
<!-- <a-select-option value="00">直接冲红</a-select-option> -->
|
|
|
|
<a-select-option value="01">开票有误</a-select-option>
|
|
|
|
<a-select-option value="01">开票有误</a-select-option>
|
|
|
|
<a-select-option value="02">销货退回</a-select-option>
|
|
|
|
<a-select-option value="02">销货退回</a-select-option>
|
|
|
|
<a-select-option value="03">服务中止</a-select-option>
|
|
|
|
<a-select-option value="03">服务中止</a-select-option>
|
|
|
@ -446,7 +446,9 @@ defineComponent({
|
|
|
|
HotTable,
|
|
|
|
HotTable,
|
|
|
|
})
|
|
|
|
})
|
|
|
|
registerAllModules()
|
|
|
|
registerAllModules()
|
|
|
|
const redForm = ref({}) as any
|
|
|
|
const redForm = ref({
|
|
|
|
|
|
|
|
lrfsf: '0'
|
|
|
|
|
|
|
|
}) as any
|
|
|
|
const detailForm = [
|
|
|
|
const detailForm = [
|
|
|
|
{
|
|
|
|
{
|
|
|
|
field: 'divider-selects',
|
|
|
|
field: 'divider-selects',
|
|
|
@ -720,7 +722,7 @@ const editCompentRef = ref()
|
|
|
|
const form = ref({
|
|
|
|
const form = ref({
|
|
|
|
category: '全电普票(电子)',
|
|
|
|
category: '全电普票(电子)',
|
|
|
|
categoryCode: 'pc',
|
|
|
|
categoryCode: 'pc',
|
|
|
|
status:'未开票'
|
|
|
|
status: '未开票'
|
|
|
|
}) as any
|
|
|
|
}) as any
|
|
|
|
const currencyList = ref([]) as any
|
|
|
|
const currencyList = ref([]) as any
|
|
|
|
const customerList = ref([]) as any
|
|
|
|
const customerList = ref([]) as any
|
|
|
@ -786,7 +788,6 @@ function getDetail() {
|
|
|
|
loading.value = true
|
|
|
|
loading.value = true
|
|
|
|
GeneralInvoiceGet({ id: route.query.id }).then(res => {
|
|
|
|
GeneralInvoiceGet({ id: route.query.id }).then(res => {
|
|
|
|
if (res.succeeded) {
|
|
|
|
if (res.succeeded) {
|
|
|
|
form.value = res.data
|
|
|
|
|
|
|
|
res.data.invoiceDetails.forEach(item => {
|
|
|
|
res.data.invoiceDetails.forEach(item => {
|
|
|
|
item.unit = '票'
|
|
|
|
item.unit = '票'
|
|
|
|
})
|
|
|
|
})
|
|
|
@ -802,6 +803,13 @@ function getDetail() {
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
res.data.isLockedName = '否'
|
|
|
|
res.data.isLockedName = '否'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if (res.data.isSetRed) {
|
|
|
|
|
|
|
|
res.data.isSetRed = '是'
|
|
|
|
|
|
|
|
res.data.invoiceType = '红票'
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
res.data.isSetRed = '否'
|
|
|
|
|
|
|
|
res.data.invoiceType = '正票'
|
|
|
|
|
|
|
|
}
|
|
|
|
if (res.data.invoiceNO) {
|
|
|
|
if (res.data.invoiceNO) {
|
|
|
|
res.data.status = '已开票'
|
|
|
|
res.data.status = '已开票'
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
@ -820,9 +828,10 @@ function getDetail() {
|
|
|
|
res.data.applyAmount = numberThousandFormat(res.data.applyAmount, 2, false)
|
|
|
|
res.data.applyAmount = numberThousandFormat(res.data.applyAmount, 2, false)
|
|
|
|
res.data.otherInvoiceAmount = numberThousandFormat(res.data.otherInvoiceAmount, 2, false)
|
|
|
|
res.data.otherInvoiceAmount = numberThousandFormat(res.data.otherInvoiceAmount, 2, false)
|
|
|
|
res.data.invoiceAmount = numberThousandFormat(res.data.invoiceAmount, 2, false)
|
|
|
|
res.data.invoiceAmount = numberThousandFormat(res.data.invoiceAmount, 2, false)
|
|
|
|
res.data.applications.forEach(item=>{
|
|
|
|
res.data.applications.forEach(item => {
|
|
|
|
item.applyAmount = numberThousandFormat(item.applyAmount, 2, false)
|
|
|
|
item.applyAmount = numberThousandFormat(item.applyAmount, 2, false)
|
|
|
|
})
|
|
|
|
})
|
|
|
|
|
|
|
|
form.value = res.data
|
|
|
|
getCustomerInfo(res.data.customerId)
|
|
|
|
getCustomerInfo(res.data.customerId)
|
|
|
|
setTableData(res.data.applications)
|
|
|
|
setTableData(res.data.applications)
|
|
|
|
setFieldsValue(res.data)
|
|
|
|
setFieldsValue(res.data)
|
|
|
@ -894,7 +903,7 @@ function updateListFreeLeft(val, arrQuery) {
|
|
|
|
function sureRed() {
|
|
|
|
function sureRed() {
|
|
|
|
const data = {
|
|
|
|
const data = {
|
|
|
|
invoiceId: route.query.id,
|
|
|
|
invoiceId: route.query.id,
|
|
|
|
orderNo: form.value.billNO,
|
|
|
|
// orderNo: form.value.billNO,
|
|
|
|
...redForm.value
|
|
|
|
...redForm.value
|
|
|
|
}
|
|
|
|
}
|
|
|
|
redloading.value = true
|
|
|
|
redloading.value = true
|
|
|
@ -941,12 +950,12 @@ function handleUpdate(val) {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// 自由开票右边
|
|
|
|
// 自由开票右边
|
|
|
|
function updateListFree(val) {
|
|
|
|
function updateListFree(val) {
|
|
|
|
val.forEach(item => {
|
|
|
|
// val.forEach(item => {
|
|
|
|
item.originalCurrency = item.currency
|
|
|
|
// item.originalCurrency = item.currency
|
|
|
|
item.currency = 'RMB'
|
|
|
|
// item.currency = 'RMB'
|
|
|
|
item.originalAmount = item.applyAmount
|
|
|
|
// item.originalAmount = item.applyAmount
|
|
|
|
item.originalProcessedAmount = item.processedAmount ? item.processedAmount : 0
|
|
|
|
// item.originalProcessedAmount = item.processedAmount ? item.processedAmount : 0
|
|
|
|
})
|
|
|
|
// })
|
|
|
|
const data = {
|
|
|
|
const data = {
|
|
|
|
invoice: {
|
|
|
|
invoice: {
|
|
|
|
...form.value,
|
|
|
|
...form.value,
|
|
|
|