Ext.define('saas.view.money.report.AccountDetails', { extend: 'saas.view.core.report.ReportPanel', xtype: 'monry-report-accountdetails', controller: 'money-report-accountdetails', viewModel: 'money-report-accountdetails', viewName: 'money-report-accountdetails', // groupField: null, listUrl: '/api/money/report/accountdetails', defaultCondition: null, reportTitle: '核销明细表', QueryWidth: 0.2, //筛选:客户/供应商、日期、单据类型(必填) searchItems: [{ name: 'sl_code', xtype: 'textfield', emptyText: '单号', columnWidth: 0.1 }, { xtype: 'multicombo', name: 'sl_kind', emptyText: '单据类型', columnWidth: 0.1, datas: [ ["采购验收单", "采购验收单"], ["采购验退单", "采购验退单"], ["出货单", "销售出货单"], ["销售退货单", "销售退货单"] ] }, { name: 'pb_date', xtype: 'condatefield', emptyText: '日期', columnWidth: 0.3 }, { // name: 'pb_code', // xtype: 'textfield', // emptyText: '核销单号', // columnWidth: 0.1 // }, { xtype: "customerDbfindTrigger", name: "cu_name", emptyText: '客户编号/名称', columnWidth: 0.15 }, { xtype: 'vendorDbfindTrigger', name: 've_name', emptyText: '供应商编号/名称', columnWidth: 0.15 }], reportColumns: [{ text: '核销单号', dataIndex: 'pb_code', width: 150 }, { text: '单据日期', dataIndex: 'pb_date', xtype: 'datecolumn', width: 110 }, { text: '业务类型', dataIndex: 'sl_kind', width: 100 }, { text: '供应商名称', dataIndex: 've_name', width: 200 }, { text: '客户名称', dataIndex: 'cu_name', width: 200 }, { text: '来源单号', dataIndex: 'sl_code', width: 150 }, { text: '本期核销金额(元)', dataIndex: 'pbd_nowbalance', exportFormat: 'Amount', xtype: 'numbercolumn', width: 150, renderer: function(v) { return saas.util.BaseUtil.numberFormat(v, 2, true); } }, { text: '总金额(元)', dataIndex: 'sl_orderamount', xtype: 'numbercolumn', exportFormat: 'Amount', width: 120, renderer: function(v) { return saas.util.BaseUtil.numberFormat(v, 2, true); } }], });