| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107 |
- 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: 'id',
- dataIndex: 'pi_id',
- hidden: true
- }, {
- text: '单据编号',
- dataIndex: 'sl_code',
- width: 150
- }, {
- text: '单据类型',
- dataIndex: 'sl_kind',
- width: 110
- }, {
- text: '供应商名称',
- dataIndex: 've_name',
- width: 200
- }, {
- text: '客户名称',
- dataIndex: 'cu_name',
- width: 200
- }, {
- text: '核销单号',
- dataIndex: 'pb_code',
- width: 200
- }, {
- text: '单据日期',
- dataIndex: 'pb_date',
- xtype: 'datecolumn',
- width: 110
- }, {
- text: '本期核销金额(元)',
- dataIndex: 'pbd_nowbalance',
- exportFormat: 'Amount',
- xtype: 'numbercolumn',
- width: 130,
- renderer: function(v) {
- var arr = (v + '.').split('.');
- var xr = (new Array(arr[1].length > 2 ? 2 : arr[1].length)).fill('0');
- var format = '0,000.' + xr.join('');
- return Ext.util.Format.number(v, format);
- }
- }, {
- text: '总金额(元)',
- dataIndex: 'sl_orderamount',
- xtype: 'numbercolumn',
- exportFormat: 'Amount',
- width: 110,
- renderer: function(v) {
- var arr = (v + '.').split('.');
- var xr = (new Array(arr[1].length > 2 ? 2 : arr[1].length)).fill('0');
- var format = '0,000.' + xr.join('');
- return Ext.util.Format.number(v, format);
- }
- }],
- });
|