|
@ -1042,7 +1042,381 @@ export const SupplierinvoiceRequestMain = useCrudSchemas(reactive<CrudSchema[]>( |
|
|
}, |
|
|
}, |
|
|
} |
|
|
} |
|
|
])) |
|
|
])) |
|
|
|
|
|
/** |
|
|
|
|
|
* @returns {Array} 供应商发票在详情展示的主表字段 |
|
|
|
|
|
*/ |
|
|
|
|
|
export const SupplierinvoiceRequestDetailMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
|
|
{ |
|
|
|
|
|
label: '汇总信息', |
|
|
|
|
|
field: '', |
|
|
|
|
|
sort: 'custom', |
|
|
|
|
|
isForm: false, |
|
|
|
|
|
isSearch: false, |
|
|
|
|
|
isTable: false, |
|
|
|
|
|
isDetail: true, |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: '供应商信息', |
|
|
|
|
|
field: '', |
|
|
|
|
|
sort: 'custom', |
|
|
|
|
|
isForm: false, |
|
|
|
|
|
isSearch: false, |
|
|
|
|
|
isTable: false, |
|
|
|
|
|
isDetail: true, |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: 'SCP系统数据', |
|
|
|
|
|
field: '', |
|
|
|
|
|
sort: 'custom', |
|
|
|
|
|
isForm: false, |
|
|
|
|
|
isSearch: false, |
|
|
|
|
|
isTable: false, |
|
|
|
|
|
isDetail: true, |
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
{ |
|
|
|
|
|
label: '单据号', |
|
|
|
|
|
field: 'number', |
|
|
|
|
|
sort: 'custom', |
|
|
|
|
|
|
|
|
|
|
|
sortTableDefault: 6, |
|
|
|
|
|
isForm: false, |
|
|
|
|
|
isTable: false, |
|
|
|
|
|
isSearch: false, |
|
|
|
|
|
isDetail: true, |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: '供应商代码', |
|
|
|
|
|
field: 'supplierCode', |
|
|
|
|
|
sort: 'custom', |
|
|
|
|
|
|
|
|
|
|
|
sortTableDefault: 6, |
|
|
|
|
|
isForm: false, |
|
|
|
|
|
isTable: false, |
|
|
|
|
|
isSearch: false, |
|
|
|
|
|
isDetail: true, |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: '系统价税合计', |
|
|
|
|
|
field: 'afterTaxAmount', |
|
|
|
|
|
formatter: accountantFormart, |
|
|
|
|
|
|
|
|
|
|
|
sortTableDefault: 6, |
|
|
|
|
|
isForm: false, |
|
|
|
|
|
isTable: false, |
|
|
|
|
|
isSearch: false, |
|
|
|
|
|
isDetail: true, |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: '财务凭证号', |
|
|
|
|
|
field: 'voucherNumber', |
|
|
|
|
|
|
|
|
|
|
|
sortTableDefault: 6, |
|
|
|
|
|
isForm: false, |
|
|
|
|
|
isTable: false, |
|
|
|
|
|
isSearch: false, |
|
|
|
|
|
isDetail: true, |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: '供应商名称', |
|
|
|
|
|
field: 'supplierName', |
|
|
|
|
|
sort: 'custom', |
|
|
|
|
|
|
|
|
|
|
|
sortTableDefault: 6, |
|
|
|
|
|
isForm: false, |
|
|
|
|
|
isTable: false, |
|
|
|
|
|
isSearch: false, |
|
|
|
|
|
isDetail: true, |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: '系统未税金额', |
|
|
|
|
|
field: 'amount', |
|
|
|
|
|
formatter: accountantFormart, |
|
|
|
|
|
|
|
|
|
|
|
sortTableDefault: 6, |
|
|
|
|
|
isForm: false, |
|
|
|
|
|
isTable: false, |
|
|
|
|
|
isSearch: false, |
|
|
|
|
|
isDetail: true, |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: '供应商创建日期', |
|
|
|
|
|
field: 'supplierName', |
|
|
|
|
|
sort: 'custom', |
|
|
|
|
|
|
|
|
|
|
|
sortTableDefault: 6, |
|
|
|
|
|
isForm: false, |
|
|
|
|
|
isTable: false, |
|
|
|
|
|
isSearch: false, |
|
|
|
|
|
isDetail: true, |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: '订单类型', |
|
|
|
|
|
field: 'orderType', |
|
|
|
|
|
dictType: DICT_TYPE.PURCHASE_INVOICE_ORDER_TYPE, |
|
|
|
|
|
dictClass: 'string', |
|
|
|
|
|
sortTableDefault: 6, |
|
|
|
|
|
isForm: false, |
|
|
|
|
|
isTable: false, |
|
|
|
|
|
isSearch: false, |
|
|
|
|
|
isDetail: true, |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: '系统税额', |
|
|
|
|
|
field: 'taxAmount', |
|
|
|
|
|
formatter: accountantFormart, |
|
|
|
|
|
sortTableDefault: 6, |
|
|
|
|
|
isForm: false, |
|
|
|
|
|
isTable: false, |
|
|
|
|
|
isSearch: false, |
|
|
|
|
|
isDetail: true, |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: '状态', |
|
|
|
|
|
field: 'status', |
|
|
|
|
|
dictType: DICT_TYPE.SUPPLIERINVOICE_REQUEST_STATUS, |
|
|
|
|
|
dictClass: 'string', |
|
|
|
|
|
sort: 'custom', |
|
|
|
|
|
sortTableDefault: 6, |
|
|
|
|
|
isForm: false, |
|
|
|
|
|
isTable: false, |
|
|
|
|
|
isSearch: false, |
|
|
|
|
|
isDetail: true, |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: '发票号码', |
|
|
|
|
|
field: 'goldenTaxInvoiceNumber', |
|
|
|
|
|
sortTableDefault: 6, |
|
|
|
|
|
isForm: false, |
|
|
|
|
|
isTable: false, |
|
|
|
|
|
isSearch: false, |
|
|
|
|
|
isDetail: true, |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: '', |
|
|
|
|
|
field: '', |
|
|
|
|
|
sortTableDefault: 6, |
|
|
|
|
|
isForm: false, |
|
|
|
|
|
isTable: false, |
|
|
|
|
|
isSearch: false, |
|
|
|
|
|
isDetail: true, |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: '采购价格审批人', |
|
|
|
|
|
field: 'procurementCreator', |
|
|
|
|
|
sortTableDefault: 1003, |
|
|
|
|
|
isForm: false, |
|
|
|
|
|
isTable: false, |
|
|
|
|
|
isSearch: false, |
|
|
|
|
|
isDetail: true, |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: '开票日期', |
|
|
|
|
|
field: 'invoiceTime', |
|
|
|
|
|
formatter: dateFormatter, |
|
|
|
|
|
detail: { |
|
|
|
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss' |
|
|
|
|
|
}, |
|
|
|
|
|
sortTableDefault: 6, |
|
|
|
|
|
isForm: false, |
|
|
|
|
|
isTable: false, |
|
|
|
|
|
isSearch: false, |
|
|
|
|
|
isDetail: true, |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: '', |
|
|
|
|
|
field: '', |
|
|
|
|
|
sortTableDefault: 6, |
|
|
|
|
|
isForm: false, |
|
|
|
|
|
isTable: false, |
|
|
|
|
|
isSearch: false, |
|
|
|
|
|
isDetail: true, |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: '采购价格审批时间', |
|
|
|
|
|
field: 'procurementCreator', |
|
|
|
|
|
sortTableDefault: 1003, |
|
|
|
|
|
isForm: false, |
|
|
|
|
|
isTable: false, |
|
|
|
|
|
isSearch: false, |
|
|
|
|
|
isDetail: true, |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: '税率(%)', |
|
|
|
|
|
field: 'taxRate', |
|
|
|
|
|
dictType: DICT_TYPE.TAX_RATE_DICT, |
|
|
|
|
|
dictClass: 'string', |
|
|
|
|
|
sortTableDefault: 3, |
|
|
|
|
|
isTable: true, |
|
|
|
|
|
sort: 'custom', |
|
|
|
|
|
table: { |
|
|
|
|
|
width: 150 |
|
|
|
|
|
}, |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: '', |
|
|
|
|
|
field: '', |
|
|
|
|
|
sortTableDefault: 6, |
|
|
|
|
|
isForm: false, |
|
|
|
|
|
isTable: false, |
|
|
|
|
|
isSearch: false, |
|
|
|
|
|
isDetail: true, |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: '价差通过说明', |
|
|
|
|
|
field: 'balanceStatement', |
|
|
|
|
|
sort: 'custom', |
|
|
|
|
|
|
|
|
|
|
|
sortTableDefault: 6, |
|
|
|
|
|
isForm: false, |
|
|
|
|
|
isTable: false, |
|
|
|
|
|
isSearch: false, |
|
|
|
|
|
isDetail: true, |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: '价税合计金额', |
|
|
|
|
|
field: 'adTaxAmount', |
|
|
|
|
|
formatter: accountantFormart, |
|
|
|
|
|
|
|
|
|
|
|
sortTableDefault: 6, |
|
|
|
|
|
isForm: false, |
|
|
|
|
|
isTable: false, |
|
|
|
|
|
isSearch: false, |
|
|
|
|
|
isDetail: true, |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: '', |
|
|
|
|
|
field: '', |
|
|
|
|
|
sortTableDefault: 6, |
|
|
|
|
|
isForm: false, |
|
|
|
|
|
isTable: false, |
|
|
|
|
|
isSearch: false, |
|
|
|
|
|
isDetail: true, |
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
{ |
|
|
|
|
|
label: '财务审批人', |
|
|
|
|
|
field: 'financialCreatorName', |
|
|
|
|
|
sort: 'custom', |
|
|
|
|
|
|
|
|
|
|
|
sortTableDefault: 6, |
|
|
|
|
|
isForm: false, |
|
|
|
|
|
isTable: false, |
|
|
|
|
|
isSearch: false, |
|
|
|
|
|
isDetail: true, |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: '未税金额', |
|
|
|
|
|
field: 'beforeTaxAmount', |
|
|
|
|
|
formatter: accountantFormart, |
|
|
|
|
|
|
|
|
|
|
|
sortTableDefault: 6, |
|
|
|
|
|
isForm: false, |
|
|
|
|
|
isTable: false, |
|
|
|
|
|
isSearch: false, |
|
|
|
|
|
isDetail: true, |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: '差额', |
|
|
|
|
|
field: '', |
|
|
|
|
|
sortTableDefault: 6, |
|
|
|
|
|
isForm: false, |
|
|
|
|
|
isTable: false, |
|
|
|
|
|
isSearch: false, |
|
|
|
|
|
isDetail: true, |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: '财务审批时间', |
|
|
|
|
|
field: 'financialCreateTime', |
|
|
|
|
|
formatter: dateFormatter, |
|
|
|
|
|
|
|
|
|
|
|
sortTableDefault: 6, |
|
|
|
|
|
isForm: false, |
|
|
|
|
|
isTable: false, |
|
|
|
|
|
isSearch: false, |
|
|
|
|
|
isDetail: true, |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: '税额', |
|
|
|
|
|
field: 'totalTaxAmount', |
|
|
|
|
|
formatter: accountantFormart, |
|
|
|
|
|
|
|
|
|
|
|
sortTableDefault: 6, |
|
|
|
|
|
isForm: false, |
|
|
|
|
|
isTable: false, |
|
|
|
|
|
isSearch: false, |
|
|
|
|
|
isDetail: true, |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: '价税合计差额(价税合计-系统价税合计)', |
|
|
|
|
|
field: 'totalTaxDiffAmount', |
|
|
|
|
|
formatter: accountantFormart, |
|
|
|
|
|
|
|
|
|
|
|
sortTableDefault: 6, |
|
|
|
|
|
isForm: false, |
|
|
|
|
|
isTable: false, |
|
|
|
|
|
isSearch: false, |
|
|
|
|
|
isDetail: true, |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: '财务过账日期', |
|
|
|
|
|
field: 'postingDate', |
|
|
|
|
|
isTable: true, |
|
|
|
|
|
sortTableDefault: 15, |
|
|
|
|
|
formatter: dateFormatter, |
|
|
|
|
|
detail: { |
|
|
|
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss' |
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: '折扣金额', |
|
|
|
|
|
field: 'discountAmount1', |
|
|
|
|
|
formatter: accountantFormart, |
|
|
|
|
|
|
|
|
|
|
|
sortTableDefault: 6, |
|
|
|
|
|
isForm: false, |
|
|
|
|
|
isTable: false, |
|
|
|
|
|
isSearch: false, |
|
|
|
|
|
isDetail: true, |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: '未税差额(未税金额-系统未税金额)', |
|
|
|
|
|
field: 'beforeTaxDiffAmount', |
|
|
|
|
|
formatter: accountantFormart, |
|
|
|
|
|
|
|
|
|
|
|
sortTableDefault: 6, |
|
|
|
|
|
isForm: false, |
|
|
|
|
|
isTable: false, |
|
|
|
|
|
isSearch: false, |
|
|
|
|
|
isDetail: true, |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: '备注', |
|
|
|
|
|
field: 'remark', |
|
|
|
|
|
sort: 'custom', |
|
|
|
|
|
|
|
|
|
|
|
sortTableDefault: 6, |
|
|
|
|
|
isForm: false, |
|
|
|
|
|
isTable: false, |
|
|
|
|
|
isSearch: false, |
|
|
|
|
|
isDetail: true, |
|
|
|
|
|
detail:{ |
|
|
|
|
|
span:2 |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: '税额差异', |
|
|
|
|
|
field: 'taxAmountDiff', |
|
|
|
|
|
formatter: accountantFormart, |
|
|
|
|
|
|
|
|
|
|
|
sortTableDefault: 6, |
|
|
|
|
|
isForm: false, |
|
|
|
|
|
isTable: false, |
|
|
|
|
|
isSearch: false, |
|
|
|
|
|
isDetail: true, |
|
|
|
|
|
}, |
|
|
|
|
|
])) |
|
|
const singlePriceFormart = (row, column, cellValue) => { |
|
|
const singlePriceFormart = (row, column, cellValue) => { |
|
|
cellValue= Number(cellValue).toFixed(2) |
|
|
cellValue= Number(cellValue).toFixed(2) |
|
|
cellValue = cellValue + '' || '' |
|
|
cellValue = cellValue + '' || '' |
|
|