|
@ -917,12 +917,12 @@ export const SupplierinvoiceRecordMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
}, |
|
|
}, |
|
|
} |
|
|
} |
|
|
])) |
|
|
])) |
|
|
export const accountantFormartDetail = ( cellValue) => { |
|
|
export const accountantFormartDetail = (row, column, cellValue) => { |
|
|
if (cellValue == 0) { |
|
|
if (cellValue == 0) { |
|
|
return cellValue |
|
|
return cellValue |
|
|
} |
|
|
} |
|
|
if (!cellValue) { |
|
|
if (!cellValue) { |
|
|
return '' |
|
|
return 0 |
|
|
} |
|
|
} |
|
|
cellValue = cellValue + '' || '' |
|
|
cellValue = cellValue + '' || '' |
|
|
cellValue = Number(cellValue).toFixed(2) |
|
|
cellValue = Number(cellValue).toFixed(2) |
|
@ -1510,7 +1510,13 @@ export const SupplierinvoiceRecordDetailMain = useCrudSchemas(reactive<CrudSchem |
|
|
}, |
|
|
}, |
|
|
])) |
|
|
])) |
|
|
const singlePriceFormart = (row, column, cellValue) => { |
|
|
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 + '' || '' |
|
|
cellValue = cellValue + '' || '' |
|
|
|
|
|
|
|
|
let x = cellValue.split('.') |
|
|
let x = cellValue.split('.') |
|
@ -1799,6 +1805,27 @@ export const SupplierinvoiceRecordDetail = useCrudSchemas(reactive<CrudSchema[]> |
|
|
disabled: true |
|
|
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: '总差额', |
|
|
label: '总差额', |
|
|
field: 'differencePriceTotal', |
|
|
field: 'differencePriceTotal', |
|
@ -1826,6 +1853,27 @@ export const SupplierinvoiceRecordDetail = useCrudSchemas(reactive<CrudSchema[]> |
|
|
disabled: true |
|
|
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: '模具分摊单价', |
|
|
label: '模具分摊单价', |
|
|
field: 'allocationPrice', |
|
|
field: 'allocationPrice', |
|
@ -1846,6 +1894,27 @@ export const SupplierinvoiceRecordDetail = useCrudSchemas(reactive<CrudSchema[]> |
|
|
precision: 2, |
|
|
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: '未税差额',
|
|
|
// label: '未税差额',
|
|
|
// field: 'untaxedDifference',
|
|
|
// field: 'untaxedDifference',
|
|
|