|
|
|
@ -187,20 +187,6 @@
|
|
|
|
|
process(dict)
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '费用英文名称',
|
|
|
|
|
width: 130,
|
|
|
|
|
data: 'feeEnName',
|
|
|
|
|
type: 'dropdown',
|
|
|
|
|
source: async (query, process) => {
|
|
|
|
|
const res = feeDict.value.length ? feeDict.value : (await GetFeeCodeSelectList())?.data
|
|
|
|
|
if (!feeDict.value.length) feeDict.value = res
|
|
|
|
|
const dict = res.map((res) => {
|
|
|
|
|
return res.enName
|
|
|
|
|
})
|
|
|
|
|
process(dict)
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '客户类别',
|
|
|
|
|
width: 130,
|
|
|
|
@ -256,20 +242,14 @@
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '税率',
|
|
|
|
|
width: 60,
|
|
|
|
|
data: 'taxRate',
|
|
|
|
|
title: '单价',
|
|
|
|
|
width: 70,
|
|
|
|
|
data: 'taxUnitPrice',
|
|
|
|
|
type: 'numeric',
|
|
|
|
|
numericFormat: {
|
|
|
|
|
pattern: '0,0.00'
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '单价',
|
|
|
|
|
width: 70,
|
|
|
|
|
data: 'taxUnitPrice',
|
|
|
|
|
type: 'numeric'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '数量',
|
|
|
|
|
width: 60,
|
|
|
|
@ -283,6 +263,9 @@
|
|
|
|
|
data: 'unitPrice',
|
|
|
|
|
type: 'numeric',
|
|
|
|
|
readOnly: true,
|
|
|
|
|
numericFormat: {
|
|
|
|
|
pattern: '0,0.00'
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '不含税金额',
|
|
|
|
@ -327,13 +310,58 @@
|
|
|
|
|
data: 'exchangeRate',
|
|
|
|
|
type: 'numeric',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '结算金额',
|
|
|
|
|
width: 100,
|
|
|
|
|
data: 'settlementAmount',
|
|
|
|
|
readOnly: true,
|
|
|
|
|
numericFormat: {
|
|
|
|
|
pattern: '0,0.00'
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '已开票金额',
|
|
|
|
|
width: 100,
|
|
|
|
|
data: 'invoiceAmount',
|
|
|
|
|
readOnly: true,
|
|
|
|
|
numericFormat: {
|
|
|
|
|
pattern: '0,0.00'
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '发票申请金额',
|
|
|
|
|
width: 100,
|
|
|
|
|
data: 'orderInvoiceAmount',
|
|
|
|
|
readOnly: true,
|
|
|
|
|
numericFormat: {
|
|
|
|
|
pattern: '0,0.00'
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '未开票金额',
|
|
|
|
|
width: 100,
|
|
|
|
|
data: 'invoiceAmountRest',
|
|
|
|
|
readOnly: true,
|
|
|
|
|
numericFormat: {
|
|
|
|
|
pattern: '0,0.00'
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '备注',
|
|
|
|
|
width: 120,
|
|
|
|
|
data: 'note',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '销项税率',
|
|
|
|
|
title: '税率',
|
|
|
|
|
width: 60,
|
|
|
|
|
data: 'taxRate',
|
|
|
|
|
type: 'numeric',
|
|
|
|
|
numericFormat: {
|
|
|
|
|
pattern: '0,0.00'
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: props.tbType == 'receive' ? '销项税率' : '进项税率',
|
|
|
|
|
width: 100,
|
|
|
|
|
data: 'accTaxRate',
|
|
|
|
|
type: 'numeric',
|
|
|
|
@ -342,13 +370,13 @@
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '销项税额',
|
|
|
|
|
title: props.tbType == 'receive' ? '销项税额' : '进项税额',
|
|
|
|
|
width: 100,
|
|
|
|
|
data: 'accTaxAmount',
|
|
|
|
|
readOnly: true,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '销项金额',
|
|
|
|
|
title: props.tbType == 'receive' ? '销项税率' : '进项金额',
|
|
|
|
|
width: 100,
|
|
|
|
|
data: 'accAmount',
|
|
|
|
|
readOnly: true,
|
|
|
|
@ -393,24 +421,6 @@
|
|
|
|
|
data: 'createTime',
|
|
|
|
|
readOnly: true,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '结算金额',
|
|
|
|
|
width: 100,
|
|
|
|
|
data: 'settlementAmount',
|
|
|
|
|
readOnly: true,
|
|
|
|
|
numericFormat: {
|
|
|
|
|
pattern: '0,0.00'
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '已开票金额',
|
|
|
|
|
width: 100,
|
|
|
|
|
data: 'invoiceAmount',
|
|
|
|
|
readOnly: true,
|
|
|
|
|
numericFormat: {
|
|
|
|
|
pattern: '0,0.00'
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '对账编号',
|
|
|
|
|
width: 140,
|
|
|
|
@ -430,22 +440,18 @@
|
|
|
|
|
readOnly: true,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '发票申请金额',
|
|
|
|
|
width: 100,
|
|
|
|
|
data: 'orderInvoiceAmount',
|
|
|
|
|
readOnly: true,
|
|
|
|
|
numericFormat: {
|
|
|
|
|
pattern: '0,0.00'
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '未开票金额',
|
|
|
|
|
width: 100,
|
|
|
|
|
data: 'invoiceAmountRest',
|
|
|
|
|
readOnly: true,
|
|
|
|
|
numericFormat: {
|
|
|
|
|
pattern: '0,0.00'
|
|
|
|
|
}
|
|
|
|
|
title: '费用英文名称',
|
|
|
|
|
width: 130,
|
|
|
|
|
data: 'feeEnName',
|
|
|
|
|
type: 'dropdown',
|
|
|
|
|
source: async (query, process) => {
|
|
|
|
|
const res = feeDict.value.length ? feeDict.value : (await GetFeeCodeSelectList())?.data
|
|
|
|
|
if (!feeDict.value.length) feeDict.value = res
|
|
|
|
|
const dict = res.map((res) => {
|
|
|
|
|
return res.enName
|
|
|
|
|
})
|
|
|
|
|
process(dict)
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '审核人',
|
|
|
|
@ -647,10 +653,12 @@
|
|
|
|
|
exchangeRateList.forEach(res => {
|
|
|
|
|
if (res.currencyCode == changes[0][3]) {
|
|
|
|
|
if (props.tbType == 'receive') {
|
|
|
|
|
list.value[changes[0][0]].exchangeRate = res.drValue
|
|
|
|
|
list.value[changes[0][0]].exchangeRate = res.drValue || 1
|
|
|
|
|
} else {
|
|
|
|
|
list.value[changes[0][0]].exchangeRate = res.crValue
|
|
|
|
|
list.value[changes[0][0]].exchangeRate = res.crValue || 1
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
list.value[changes[0][0]].exchangeRate = 1
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|