| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114 |
- 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/purchase/list',
- defaultCondition: null,
- reportTitle: '采购明细报表',
- QueryWidth:0.25,
- //筛选:供应商、日期(必填)、业务状态
- searchItems: [ {
- xtype: 'dbfindtrigger',
- name: 'pu_vendname',
- fieldLabel: '供应商名称',
- columnWidth: 0.25
- }, {
- xtype: 'condatefield',
- name: 'pu_date',
- fieldLabel: '单据日期',
- columnWidth: 0.25
- }, {
- xtype: 'multicombo',
- name: 'pu_acceptstatuscode',
- fieldLabel: '业务状态',
- columnWidth: 0.25,
- datas: [
- ["TURNIN", "已入库"],
- ["UNTURNIN", "未入库"],
- ["PART2IN", "部分入库"],
- ["CLOSE", "已关闭"]
- ]
- }],
- reportColumns: [
- {
- text: 'id',
- dataIndex: 'pu_id',
- hidden: true
- }, {
- text: '采购单号',
- dataIndex: 'pu_code',
- width: 200
- }, {
- text: '供应商编号',
- dataIndex: 'pu_vendcode',
- width: 200
- }, {
- text: '供应商名称',
- dataIndex: 'pu_vendname',
- width: 200
- }, {
- text: '业务状态',
- dataIndex: 'pu_status'
- }, {
- text: '采购员',
- dataIndex: 'pu_buyername'
- }, {
- text: '单据日期',
- xtype: 'datecolumn',
- dataIndex: 'pu_date'
- }, {
- text: '序号',
- dataIndex: 'pd_detno'
- }, {
- text: '物料编号',
- dataIndex: 'pd_prodcode'
- }, {
- text: '物料名称',
- dataIndex: 'pr_detail'
- }, {
- text: '物料规格',
- dataIndex: 'pr_spec'
- }, {
- text: '品牌',
- dataIndex: 'pr_brand'
- }, {
- text: '单位',
- dataIndex: 'pr_unit'
- }, {
- text: '采购数量',
- dataIndex: 'pd_qty',
- summaryType: 'count'
- }, {
- text: '单价',
- dataIndex: 'pd_price'
- }, {
- text: '税率',
- dataIndex: 'pd_taxrate'
- }, {
- text: '金额',
- dataIndex: 'pd_total',
- summaryType: 'count'
- }, {
- text: '不含税单价',
- dataIndex: 'pd_taxprice'
- }, {
- text: '不含税金额',
- dataIndex: 'pd_taxtotal'
- }, {
- text: '收货数量',
- dataIndex: 'pd_acceptqty'
- }, {
- text: '收货金额',
- dataIndex: 'pd_accepttotal'
- }, {
- text: '备注'
- }]
- });
|