| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116 |
- Ext.define('saas.view.sale.report.SaleProfit', {
- extend: 'saas.view.core.report.ReportPanel',
- xtype: 'sale-report-saleprofit',
- controller: 'sale-report-saleprofit',
- viewModel: 'sale-report-saleprofit',
- viewName: 'sale-report-saleprofit',
- groupField: null,
- listUrl: '/api/sale/report/saleProfit',
- defaultCondition: null,
- reportTitle: '销售毛利润表',
- //筛选:客户、物料、时间
- QueryWidth:0.1,
- searchItems: [{
- xtype: 'dbfindtrigger',
- name: 'sa_custname',
- fieldLabel: '客户',
- columnWidth: 0.2
- }, {
- xtype: 'dbfindtrigger',
- name: 'sd_prodcode',
- fieldLabel: '物料',
- columnWidth: 0.2
- }, {
- xtype: 'condatefield',
- name: 'sa_date',
- fieldLabel: '时间',
- columnWidth: 0.5
- }],
- reportColumns: [
- {
- text: 'id',
- dataIndex: 'sa_id',
- hidden: true
- }, {
- text: '客户编号',
- dataIndex: 'sa_custcode',
- width: 200
- }, {
- text: '客户名称',
- dataIndex: 'sa_custname',
- width: 200
- }, {
- text: '业务员编号',
- dataIndex: 'sa_sellercode',
- hidden:true
- }, {
- text: '业务员',
- dataIndex: 'sa_seller'
- }, {
- text: '单据日期',
- xtype: 'datecolumn',
- dataIndex: 'sa_date'
- }, {
- text: '单据编号',
- dataIndex: 'pd_inoutno',
- width: 200
- }, {
- text: '单据类型',
- dataIndex: 'pd_piclass'
- }, {
- text: '物料类别',
- dataIndex: 'pr_kind'
- }, {
- text: '物料编号',
- dataIndex: 'pr_code',
- width: 200
- }, {
- text: '物料名称',
- dataIndex: 'pr_detail',
- width: 200
- }, {
- text: '物料规格',
- dataIndex: 'pr_spec'
- }, {
- text: '单位',
- xtype: 'numbercolumn',
- dataIndex: 'pr_unit'
- }, {
- text: '数量',
- xtype: 'numbercolumn',
- dataIndex: 'pd_outqty'
- }, {
- text: '单价',
- xtype: 'numbercolumn',
- dataIndex: 'pd_sendprice'
- }, {
- text: '税率%',
- xtype: 'numbercolumn',
- dataIndex: 'pd_taxrate'
- }, {
- text: '含税金额',
- xtype: 'numbercolumn',
- dataIndex: 'pd_ordertotal'
- }, {
- text: '成本金额',
- xtype: 'numbercolumn',
- dataIndex: 'pd_total'
- }, {
- text: '毛利润',
- xtype: 'numbercolumn',
- dataIndex: 'pd_profit'
- }, {
- text: '毛利率%',
- xtype: 'numbercolumn',
- dataIndex: 'pd_profitpresent'
- }, {
- text : "备注",
- dataIndex : "pd_remark",
- width : 250
- }]
- });
|