| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191 |
- Ext.define('saas.view.purchase.report.Purchase', {
- extend: 'saas.view.core.report.ReportPanel',
- xtype: 'purchase-report-purchase',
- controller: 'purchase-report-purchase',
- viewModel: 'purchase-report-purchase',
- viewName: 'purchase-report-purchase',
- groupField: null,
- listUrl: '/api/purchase/report/purchaseDetail',
- defaultCondition: null,
- reportTitle: '采购明细报表',
- QueryWidth: 0.2,
- //筛选:供应商、日期(必填)、业务状态
- searchItems: [{
- xtype: 'vendorDbfindTrigger',
- name: 'pu_vendname',
- fieldLabel: '供应商名称',
- columnWidth: 0.2
- }, {
- xtype: 'condatefield',
- name: 'pu_date',
- fieldLabel: '单据日期',
- columnWidth: 0.4
- }, {
- xtype: 'multicombo',
- name: 'pu_acceptstatuscode',
- fieldLabel: '业务状态',
- columnWidth: 0.2,
- datas: [
- ["TURNIN", "已入库"],
- ["UNTURNIN", "未入库"],
- ["PART2IN", "部分入库"],
- ["CLOSE", "已关闭"]
- ]
- }],
- reportModel: 'saas.model.report.Purchase',
- reportColumns: [{
- text: 'id',
- dataIndex: 'pu_id',
- hidden: true
- }, {
- text: '采购单号',
- dataIndex: 'pu_code',
- width: 150
- }, {
- text: '供应商名称',
- dataIndex: 'pu_vendname',
- width: 200
- }, {
- text: '业务状态',
- dataIndex: 'pu_acceptstatus',
- width: 80
- }, {
- text: '采购员',
- dataIndex: 'pu_buyername',
- width: 80
- }, {
- text: '单据日期',
- xtype: 'datecolumn',
- dataIndex: 'pu_date',
- width: 110
- }, {
- text: '物料编号',
- dataIndex: 'pd_prodcode',
- width: 150
- }, {
- text: '品牌',
- dataIndex: 'pr_brand',
- width: 100
- }, {
- text: '名称',
- dataIndex: 'pr_detail',
- width: 150
- }, {
- text: '型号',
- dataIndex: 'pr_orispeccode',
- width: 200
- }, {
- text: '规格',
- dataIndex: 'pr_spec',
- width: 200
- }, {
- text: '采购数量',
- dataIndex: 'pd_qty',
- xtype: 'numbercolumn',
- exportFormat: 'Quantity',
- width: 110,
- summaryType: 'sum',
- renderer: function (v) {
- return saas.util.BaseUtil.numberFormat(v, 3, true);
- },
- summaryRenderer: function (v) {
- return saas.util.BaseUtil.numberFormat(v, 3, true);
- }
- }, {
- text: '单位',
- dataIndex: 'pr_unit',
- width: 65
- }, {
- text: '单价(元)',
- dataIndex: 'pd_taxprice',
- width: 120,
- xtype: 'numbercolumn',
- exportFormat: 'Price',
- renderer: function (v) {
- return saas.util.BaseUtil.numberFormat(v, 4, true);
- }
- }, {
- text: '含税单价(元)',
- dataIndex: 'pd_price',
- width: 120,
- xtype: 'numbercolumn',
- exportFormat: 'Price',
- renderer: function (v) {
- return saas.util.BaseUtil.numberFormat(v, 4, true);
- }
- }, {
- text: '金额(元)',
- dataIndex: 'pd_taxtotal',
- width: 120,
- exportFormat: 'Amount',
- xtype: 'numbercolumn',
- renderer: function (v) {
- return saas.util.BaseUtil.numberFormat(v, 2, true);
- },
- summaryLabel: '金额',
- summaryType: 'sum',
- summaryRenderer: function (v) {
- return saas.util.BaseUtil.numberFormat(v, 2, true);
- }
- }, {
- text: '税率(%)',
- dataIndex: 'pd_taxrate',
- exportFormat: 'Integer',
- xtype: 'numbercolumn',
- width: 80
- }, {
- text: '税额(元)',
- dataIndex: 'pd_total-pd_taxtotal',
- xtype: 'numbercolumn',
- width: 120,
- exportFormat: 'Amount',
- xtype: 'numbercolumn',
- renderer: function (v) {
- return saas.util.BaseUtil.numberFormat(v, 2, true);
- },
- summaryLabel: '税额',
- summaryType: 'sum',
- summaryRenderer: function (v) {
- return saas.util.BaseUtil.numberFormat(v, 2, true);
- }
- }, {
- text: '价税合计(元)',
- dataIndex: 'pd_total',
- xtype: 'numbercolumn',
- width: 120,
- exportFormat: 'Amount',
- xtype: 'numbercolumn',
- renderer: function (v) {
- return saas.util.BaseUtil.numberFormat(v, 2, true);
- },
- summaryLabel: '价税合计',
- summaryType: 'sum',
- summaryRenderer: function (v) {
- return saas.util.BaseUtil.numberFormat(v, 2, true);
- }
- }, {
- text: '收货数量',
- dataIndex: 'pd_pdacceptqty',
- xtype: 'numbercolumn',
- width: 110,
- exportFormat: 'Quantity',
- xtype: 'numbercolumn',
- renderer: function (v) {
- return saas.util.BaseUtil.numberFormat(v, 3, true);
- },
- summaryType: 'sum',
- summaryRenderer: function (v) {
- return saas.util.BaseUtil.numberFormat(v, 3, true);
- }
- }, {
- text: '备注',
- dataIndex: 'pd_remark',
- width: 250
- }]
- });
|