Browse Source

YT-2391SCP供应商开票申请明细中增加字段

intex_online20250725
张立 2 days ago
parent
commit
c34adbea78
  1. 75
      src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRecordMain/supplierinvoiceRecordMain.data.ts

75
src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRecordMain/supplierinvoiceRecordMain.data.ts

@ -917,12 +917,12 @@ export const SupplierinvoiceRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
},
}
]))
export const accountantFormartDetail = ( cellValue) => {
export const accountantFormartDetail = (row, column, cellValue) => {
if (cellValue == 0) {
return cellValue
}
if (!cellValue) {
return ''
return 0
}
cellValue = cellValue + '' || ''
cellValue = Number(cellValue).toFixed(2)
@ -1510,7 +1510,13 @@ export const SupplierinvoiceRecordDetailMain = useCrudSchemas(reactive<CrudSchem
},
]))
const singlePriceFormart = (row, column, cellValue) => {
cellValue= Number(cellValue).toFixed(5)
if (cellValue == 0) {
return cellValue
}
if (!cellValue) {
return 0
}
cellValue = String(Math.round(Number(cellValue) * 100000) / 100000)
cellValue = cellValue + '' || ''
let x = cellValue.split('.')
@ -1799,6 +1805,27 @@ export const SupplierinvoiceRecordDetail = useCrudSchemas(reactive<CrudSchema[]>
disabled: true
}
},
{
label: '金额(含模具费)',
field: 'singleAndAllocateAmount',
formatter: accountantFormartDetail,
table: {
width: 150
},
isForm: false,
form: {
componentProps: {
disabled: true,
precision: 2,
}
},
isTableForm: false,
tableForm: {
disabled: true,
type: 'InputNumber',
precision: 2,
}
},
{
label: '总差额',
field: 'differencePriceTotal',
@ -1826,6 +1853,27 @@ export const SupplierinvoiceRecordDetail = useCrudSchemas(reactive<CrudSchema[]>
disabled: true
}
},
{
label: '金额(模具费)',
field: 'allocationAmount',
formatter: accountantFormartDetail,
table: {
width: 150
},
isForm: false,
form: {
componentProps: {
disabled: true,
precision: 2,
}
},
isTableForm: false,
tableForm: {
disabled: true,
type: 'InputNumber',
precision: 2,
}
},
{
label: '模具分摊单价',
field: 'allocationPrice',
@ -1846,6 +1894,27 @@ export const SupplierinvoiceRecordDetail = useCrudSchemas(reactive<CrudSchema[]>
precision: 2,
}
},
{
label: '含模具费单价',
field: 'singleAndAllocatePrice',
formatter: singlePriceFormart,
table: {
width: 150
},
isForm: false,
form: {
componentProps: {
disabled: true,
precision: 5,
}
},
isTableForm: false,
tableForm: {
disabled: true,
type: 'InputNumber',
precision: 5,
}
},
// {
// label: '未税差额',
// field: 'untaxedDifference',

Loading…
Cancel
Save