|
@ -917,6 +917,21 @@ export const SupplierinvoiceRecordMain = 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} 供应商发票在详情展示的主表字段 |
|
|
*/ |
|
|
*/ |
|
@ -946,6 +961,10 @@ export const SupplierinvoiceRecordDetailMain = useCrudSchemas(reactive<CrudSchem |
|
|
isTable: false, |
|
|
isTable: false, |
|
|
isSearch: false, |
|
|
isSearch: false, |
|
|
isDetail: true, |
|
|
isDetail: true, |
|
|
|
|
|
formatter: accountantFormart, |
|
|
|
|
|
detail: { |
|
|
|
|
|
formatter: accountantFormartDetail, |
|
|
|
|
|
}, |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: 'SCP系统数据', |
|
|
label: 'SCP系统数据', |
|
@ -983,6 +1002,9 @@ export const SupplierinvoiceRecordDetailMain = useCrudSchemas(reactive<CrudSchem |
|
|
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, |
|
@ -1013,6 +1035,9 @@ export const SupplierinvoiceRecordDetailMain = useCrudSchemas(reactive<CrudSchem |
|
|
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, |
|
@ -1119,6 +1144,9 @@ export const SupplierinvoiceRecordDetailMain = useCrudSchemas(reactive<CrudSchem |
|
|
label: '供应商维护价税合计', |
|
|
label: '供应商维护价税合计', |
|
|
field: 'afterTaxAmount', |
|
|
field: 'afterTaxAmount', |
|
|
formatter: accountantFormart, |
|
|
formatter: accountantFormart, |
|
|
|
|
|
detail: { |
|
|
|
|
|
formatter: accountantFormartDetail, |
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
sortTableDefault: 6, |
|
|
sortTableDefault: 6, |
|
|
isForm: false, |
|
|
isForm: false, |
|
@ -1154,6 +1182,9 @@ export const SupplierinvoiceRecordDetailMain = useCrudSchemas(reactive<CrudSchem |
|
|
label: '供应商维护未税金额', |
|
|
label: '供应商维护未税金额', |
|
|
field: 'amount', |
|
|
field: 'amount', |
|
|
formatter: accountantFormart, |
|
|
formatter: accountantFormart, |
|
|
|
|
|
detail: { |
|
|
|
|
|
formatter: accountantFormartDetail, |
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
sortTableDefault: 6, |
|
|
sortTableDefault: 6, |
|
|
isForm: false, |
|
|
isForm: false, |
|
@ -1176,6 +1207,9 @@ export const SupplierinvoiceRecordDetailMain = useCrudSchemas(reactive<CrudSchem |
|
|
label: '发票价税合计', |
|
|
label: '发票价税合计', |
|
|
field: 'adTaxAmount', |
|
|
field: 'adTaxAmount', |
|
|
formatter: accountantFormart, |
|
|
formatter: accountantFormart, |
|
|
|
|
|
detail: { |
|
|
|
|
|
formatter: accountantFormartDetail, |
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
sortTableDefault: 6, |
|
|
sortTableDefault: 6, |
|
|
isForm: false, |
|
|
isForm: false, |
|
@ -1187,6 +1221,9 @@ export const SupplierinvoiceRecordDetailMain = useCrudSchemas(reactive<CrudSchem |
|
|
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, |
|
@ -1208,6 +1245,9 @@ export const SupplierinvoiceRecordDetailMain = useCrudSchemas(reactive<CrudSchem |
|
|
label: '发票未税金额', |
|
|
label: '发票未税金额', |
|
|
field: 'beforeTaxAmount', |
|
|
field: 'beforeTaxAmount', |
|
|
formatter: accountantFormart, |
|
|
formatter: accountantFormart, |
|
|
|
|
|
detail: { |
|
|
|
|
|
formatter: accountantFormartDetail, |
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
sortTableDefault: 6, |
|
|
sortTableDefault: 6, |
|
|
isForm: false, |
|
|
isForm: false, |
|
@ -1241,6 +1281,9 @@ export const SupplierinvoiceRecordDetailMain = useCrudSchemas(reactive<CrudSchem |
|
|
label: '发票税额', |
|
|
label: '发票税额', |
|
|
field: 'totalTaxAmount', |
|
|
field: 'totalTaxAmount', |
|
|
formatter: accountantFormart, |
|
|
formatter: accountantFormart, |
|
|
|
|
|
detail: { |
|
|
|
|
|
formatter: accountantFormartDetail, |
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
sortTableDefault: 6, |
|
|
sortTableDefault: 6, |
|
|
isForm: false, |
|
|
isForm: false, |
|
@ -1276,6 +1319,9 @@ export const SupplierinvoiceRecordDetailMain = useCrudSchemas(reactive<CrudSchem |
|
|
label: '返利未税金额',//折扣金额
|
|
|
label: '返利未税金额',//折扣金额
|
|
|
field: 'discountAmount1', |
|
|
field: 'discountAmount1', |
|
|
formatter: accountantFormart, |
|
|
formatter: accountantFormart, |
|
|
|
|
|
detail: { |
|
|
|
|
|
formatter: accountantFormartDetail, |
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
sortTableDefault: 6, |
|
|
sortTableDefault: 6, |
|
|
isForm: false, |
|
|
isForm: false, |
|
@ -1355,6 +1401,10 @@ export const SupplierinvoiceRecordDetailMain = useCrudSchemas(reactive<CrudSchem |
|
|
disabled: true, |
|
|
disabled: true, |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
|
|
|
formatter: accountantFormart, |
|
|
|
|
|
detail: { |
|
|
|
|
|
formatter: accountantFormartDetail, |
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
@ -1362,6 +1412,9 @@ export const SupplierinvoiceRecordDetailMain = useCrudSchemas(reactive<CrudSchem |
|
|
label: '发票总额', |
|
|
label: '发票总额', |
|
|
field: 'invoiceAmountMain', |
|
|
field: 'invoiceAmountMain', |
|
|
formatter: accountantFormart, |
|
|
formatter: accountantFormart, |
|
|
|
|
|
detail: { |
|
|
|
|
|
formatter: accountantFormartDetail, |
|
|
|
|
|
}, |
|
|
table: { |
|
|
table: { |
|
|
width: 160 |
|
|
width: 160 |
|
|
}, |
|
|
}, |
|
@ -1407,6 +1460,9 @@ export const SupplierinvoiceRecordDetailMain = useCrudSchemas(reactive<CrudSchem |
|
|
label: '模具未税金额', |
|
|
label: '模具未税金额', |
|
|
field: 'moldUntaxedAmount', |
|
|
field: 'moldUntaxedAmount', |
|
|
formatter: accountantFormart, |
|
|
formatter: accountantFormart, |
|
|
|
|
|
detail: { |
|
|
|
|
|
formatter: accountantFormartDetail, |
|
|
|
|
|
}, |
|
|
table: { |
|
|
table: { |
|
|
width: 160 |
|
|
width: 160 |
|
|
}, |
|
|
}, |
|
@ -1427,6 +1483,9 @@ export const SupplierinvoiceRecordDetailMain = useCrudSchemas(reactive<CrudSchem |
|
|
label: '模具税额', |
|
|
label: '模具税额', |
|
|
field: 'moldTaxAmount', |
|
|
field: 'moldTaxAmount', |
|
|
formatter: accountantFormart, |
|
|
formatter: accountantFormart, |
|
|
|
|
|
detail: { |
|
|
|
|
|
formatter: accountantFormartDetail, |
|
|
|
|
|
}, |
|
|
table: { |
|
|
table: { |
|
|
width: 160 |
|
|
width: 160 |
|
|
}, |
|
|
}, |
|
|