|
@ -1278,6 +1278,21 @@ export const SupplierinvoiceRequestMain = useCrudSchemas(reactive<CrudSchema[]>( |
|
|
}, |
|
|
}, |
|
|
} |
|
|
} |
|
|
])) |
|
|
])) |
|
|
|
|
|
export const accountantFormartDetail = ( cellValue) => { |
|
|
|
|
|
if(!cellValue){ |
|
|
|
|
|
return '' |
|
|
|
|
|
} |
|
|
|
|
|
cellValue = cellValue + '' || '' |
|
|
|
|
|
cellValue = Number(cellValue).toFixed(2) |
|
|
|
|
|
let x = cellValue.split('.') |
|
|
|
|
|
let x1 = x[0] |
|
|
|
|
|
let x2 = x.length > 1 ? '.' + x[1] : '' |
|
|
|
|
|
const reg = /(\d+)(\d{3})/ |
|
|
|
|
|
while(reg.test(x1)){ |
|
|
|
|
|
x1 = x1.replace(reg, '$1,$2') |
|
|
|
|
|
} |
|
|
|
|
|
return x1+x2 |
|
|
|
|
|
} |
|
|
/** |
|
|
/** |
|
|
* @returns {Array} 供应商发票在详情展示的主表字段 |
|
|
* @returns {Array} 供应商发票在详情展示的主表字段 |
|
|
*/ |
|
|
*/ |
|
@ -1345,6 +1360,9 @@ export const SupplierinvoiceRequestDetailMain = useCrudSchemas(reactive<CrudSche |
|
|
label: '待开发票未税金额', |
|
|
label: '待开发票未税金额', |
|
|
field: 'purchaseAmountTotalMain', |
|
|
field: 'purchaseAmountTotalMain', |
|
|
formatter: accountantFormart, |
|
|
formatter: accountantFormart, |
|
|
|
|
|
detail: { |
|
|
|
|
|
formatter: accountantFormartDetail, |
|
|
|
|
|
}, |
|
|
sortTableDefault: 6, |
|
|
sortTableDefault: 6, |
|
|
isForm: false, |
|
|
isForm: false, |
|
|
isTable: false, |
|
|
isTable: false, |
|
@ -1375,6 +1393,9 @@ export const SupplierinvoiceRequestDetailMain = useCrudSchemas(reactive<CrudSche |
|
|
label: '价差合计', |
|
|
label: '价差合计', |
|
|
field: 'differencePriceTotalMain', |
|
|
field: 'differencePriceTotalMain', |
|
|
formatter: accountantFormart, |
|
|
formatter: accountantFormart, |
|
|
|
|
|
detail: { |
|
|
|
|
|
formatter: accountantFormartDetail, |
|
|
|
|
|
}, |
|
|
sortTableDefault: 6, |
|
|
sortTableDefault: 6, |
|
|
isForm: false, |
|
|
isForm: false, |
|
|
isTable: false, |
|
|
isTable: false, |
|
@ -1480,7 +1501,9 @@ export const SupplierinvoiceRequestDetailMain = useCrudSchemas(reactive<CrudSche |
|
|
label: '材料款价税合计',//'供应商维护价税合计',
|
|
|
label: '材料款价税合计',//'供应商维护价税合计',
|
|
|
field: 'afterTaxAmount', |
|
|
field: 'afterTaxAmount', |
|
|
formatter: accountantFormart, |
|
|
formatter: accountantFormart, |
|
|
|
|
|
detail: { |
|
|
|
|
|
formatter: accountantFormartDetail, |
|
|
|
|
|
}, |
|
|
sortTableDefault: 6, |
|
|
sortTableDefault: 6, |
|
|
isForm: false, |
|
|
isForm: false, |
|
|
isTable: false, |
|
|
isTable: false, |
|
@ -1515,7 +1538,9 @@ export const SupplierinvoiceRequestDetailMain = useCrudSchemas(reactive<CrudSche |
|
|
label: '材料款未税金额', //供应商维护未税金额
|
|
|
label: '材料款未税金额', //供应商维护未税金额
|
|
|
field: 'amount', |
|
|
field: 'amount', |
|
|
formatter: accountantFormart, |
|
|
formatter: accountantFormart, |
|
|
|
|
|
detail: { |
|
|
|
|
|
formatter: accountantFormartDetail, |
|
|
|
|
|
}, |
|
|
sortTableDefault: 6, |
|
|
sortTableDefault: 6, |
|
|
isForm: false, |
|
|
isForm: false, |
|
|
isTable: false, |
|
|
isTable: false, |
|
@ -1537,22 +1562,29 @@ export const SupplierinvoiceRequestDetailMain = useCrudSchemas(reactive<CrudSche |
|
|
label: '发票价税合计', |
|
|
label: '发票价税合计', |
|
|
field: 'adTaxAmount', |
|
|
field: 'adTaxAmount', |
|
|
formatter: accountantFormart, |
|
|
formatter: accountantFormart, |
|
|
|
|
|
detail: { |
|
|
|
|
|
formatter: accountantFormartDetail, |
|
|
|
|
|
}, |
|
|
sortTableDefault: 6, |
|
|
sortTableDefault: 6, |
|
|
isForm: false, |
|
|
isForm: false, |
|
|
isTable: false, |
|
|
isTable: false, |
|
|
isSearch: false, |
|
|
isSearch: false, |
|
|
isDetail: true, |
|
|
isDetail: true, |
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '材料款税额',//'供应商维护税额',
|
|
|
label: '材料款税额',//'供应商维护税额',
|
|
|
field: 'taxAmount', |
|
|
field: 'taxAmount', |
|
|
formatter: accountantFormart, |
|
|
formatter: accountantFormart, |
|
|
|
|
|
detail: { |
|
|
|
|
|
formatter: accountantFormartDetail, |
|
|
|
|
|
}, |
|
|
sortTableDefault: 6, |
|
|
sortTableDefault: 6, |
|
|
isForm: false, |
|
|
isForm: false, |
|
|
isTable: false, |
|
|
isTable: false, |
|
|
isSearch: false, |
|
|
isSearch: false, |
|
|
isDetail: true, |
|
|
isDetail: true, |
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '财务审批人', |
|
|
label: '财务审批人', |
|
@ -1569,7 +1601,9 @@ export const SupplierinvoiceRequestDetailMain = useCrudSchemas(reactive<CrudSche |
|
|
label: '发票未税金额', |
|
|
label: '发票未税金额', |
|
|
field: 'beforeTaxAmount', |
|
|
field: 'beforeTaxAmount', |
|
|
formatter: accountantFormart, |
|
|
formatter: accountantFormart, |
|
|
|
|
|
detail: { |
|
|
|
|
|
formatter: accountantFormartDetail, |
|
|
|
|
|
}, |
|
|
sortTableDefault: 6, |
|
|
sortTableDefault: 6, |
|
|
isForm: false, |
|
|
isForm: false, |
|
|
isTable: false, |
|
|
isTable: false, |
|
@ -1602,7 +1636,9 @@ export const SupplierinvoiceRequestDetailMain = useCrudSchemas(reactive<CrudSche |
|
|
label: '发票税额', |
|
|
label: '发票税额', |
|
|
field: 'totalTaxAmount', |
|
|
field: 'totalTaxAmount', |
|
|
formatter: accountantFormart, |
|
|
formatter: accountantFormart, |
|
|
|
|
|
detail: { |
|
|
|
|
|
formatter: accountantFormartDetail, |
|
|
|
|
|
}, |
|
|
sortTableDefault: 6, |
|
|
sortTableDefault: 6, |
|
|
isForm: false, |
|
|
isForm: false, |
|
|
isTable: false, |
|
|
isTable: false, |
|
@ -1637,7 +1673,9 @@ export const SupplierinvoiceRequestDetailMain = useCrudSchemas(reactive<CrudSche |
|
|
label: '返利未税金额', |
|
|
label: '返利未税金额', |
|
|
field: 'discountAmount1', |
|
|
field: 'discountAmount1', |
|
|
formatter: accountantFormart, |
|
|
formatter: accountantFormart, |
|
|
|
|
|
detail: { |
|
|
|
|
|
formatter: accountantFormartDetail, |
|
|
|
|
|
}, |
|
|
sortTableDefault: 6, |
|
|
sortTableDefault: 6, |
|
|
isForm: false, |
|
|
isForm: false, |
|
|
isTable: false, |
|
|
isTable: false, |
|
@ -1716,6 +1754,10 @@ export const SupplierinvoiceRequestDetailMain = useCrudSchemas(reactive<CrudSche |
|
|
disabled: true, |
|
|
disabled: true, |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
|
|
|
formatter: accountantFormart, |
|
|
|
|
|
detail: { |
|
|
|
|
|
formatter: accountantFormartDetail, |
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
@ -1738,6 +1780,10 @@ export const SupplierinvoiceRequestDetailMain = useCrudSchemas(reactive<CrudSche |
|
|
disabled: true, |
|
|
disabled: true, |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
|
|
|
formatter: accountantFormart, |
|
|
|
|
|
detail: { |
|
|
|
|
|
formatter: accountantFormartDetail, |
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
@ -1760,6 +1806,10 @@ export const SupplierinvoiceRequestDetailMain = useCrudSchemas(reactive<CrudSche |
|
|
disabled: true, |
|
|
disabled: true, |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
|
|
|
formatter: accountantFormart, |
|
|
|
|
|
detail: { |
|
|
|
|
|
formatter: accountantFormartDetail, |
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
|
// {
|
|
|
// {
|
|
@ -1781,6 +1831,10 @@ export const SupplierinvoiceRequestDetailMain = useCrudSchemas(reactive<CrudSche |
|
|
// type: 'InputNumber',
|
|
|
// type: 'InputNumber',
|
|
|
// precision: 2,
|
|
|
// precision: 2,
|
|
|
// },
|
|
|
// },
|
|
|
|
|
|
// formatter: accountantFormart,
|
|
|
|
|
|
// detail: {
|
|
|
|
|
|
// formatter: accountantFormartDetail,
|
|
|
|
|
|
// },
|
|
|
// },
|
|
|
// },
|
|
|
{ |
|
|
{ |
|
|
label: '金税票号', |
|
|
label: '金税票号', |
|
@ -1802,6 +1856,9 @@ export const SupplierinvoiceRequestDetailMain = useCrudSchemas(reactive<CrudSche |
|
|
label: '模具未税金额', |
|
|
label: '模具未税金额', |
|
|
field: 'moldUntaxedAmount', |
|
|
field: 'moldUntaxedAmount', |
|
|
formatter: accountantFormart, |
|
|
formatter: accountantFormart, |
|
|
|
|
|
detail: { |
|
|
|
|
|
formatter: accountantFormartDetail, |
|
|
|
|
|
}, |
|
|
table: { |
|
|
table: { |
|
|
width: 160 |
|
|
width: 160 |
|
|
}, |
|
|
}, |
|
@ -1822,6 +1879,9 @@ export const SupplierinvoiceRequestDetailMain = useCrudSchemas(reactive<CrudSche |
|
|
label: '模具税额', |
|
|
label: '模具税额', |
|
|
field: 'moldTaxAmount', |
|
|
field: 'moldTaxAmount', |
|
|
formatter: accountantFormart, |
|
|
formatter: accountantFormart, |
|
|
|
|
|
detail: { |
|
|
|
|
|
formatter: accountantFormartDetail, |
|
|
|
|
|
}, |
|
|
table: { |
|
|
table: { |
|
|
width: 160 |
|
|
width: 160 |
|
|
}, |
|
|
}, |
|
@ -1842,6 +1902,9 @@ export const SupplierinvoiceRequestDetailMain = useCrudSchemas(reactive<CrudSche |
|
|
label: '模具价税合计', |
|
|
label: '模具价税合计', |
|
|
field: 'moldTaxTotal', |
|
|
field: 'moldTaxTotal', |
|
|
formatter: accountantFormart, |
|
|
formatter: accountantFormart, |
|
|
|
|
|
detail: { |
|
|
|
|
|
formatter: accountantFormartDetail, |
|
|
|
|
|
}, |
|
|
table: { |
|
|
table: { |
|
|
width: 160 |
|
|
width: 160 |
|
|
}, |
|
|
}, |
|
|