| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677 |
- Ext.define('make.view.make.report.inprocess.Inprocess', {
- extend: 'saas.view.core.report.ReportPanel',
- xtype: 'make-report-inprocess',
- controller: 'make-report-inprocess',
- viewModel: 'make-report-inprocess',
- viewName: 'make-report-inprocess',
- groupField: null,
- listUrl: '/api/make/report/makeInProcess',
- defaultCondition: null,
- reportTitle: '工单在制汇总表',
- QueryWidth:0.4,
- caller:'MakeInProcessReport',
- searchItems: [{
- xtype: 'textfield',
- name: 'mm_prodcode',
- emptyText:'输入物料编号、名称或型号',
- columnWidth: 0.4,
- margin: '0 5 5 15',
- getCondition: function(v) {
- return "(upper(pr_orispeccode) like '%" + v.toUpperCase()+"%' or upper(pr_code) like '%"+v.toUpperCase()+"%' or upper(pr_detail) like '%"+v.toUpperCase()+"%')";
- }
- }],
- reportColumns: [{
- text: '物料编号',
- width: 150,
- dataIndex: 'mm_prodcode'
- }, {
- text: '物料名称',
- dataIndex: 'pr_detail',
- width: 150
- }, {
- text: '物料规格',
- dataIndex: 'pr_spec',
- width: 200
- }, {
- text: '单位',
- dataIndex: 'pr_unit',
- width: 65
- }, {
- text: '在制数量',
- dataIndex: 'qty',
- xtype: 'numbercolumn',
- width:110,
- renderer: function(v) {
- return saas.util.BaseUtil.numberFormat(v, 6, true);
- }
- },{
- text: '成本单价(元)',
- dataIndex: 'price',
- exportFormat: 'Price',
- xtype: 'numbercolumn',
- width: 120,
- renderer: function(v) {
- return saas.util.BaseUtil.numberFormat(v, 8, true);
- }
- },{
- text: '成本金额(元)',
- dataIndex: 'amount',
- exportFormat: 'Amount',
- xtype: 'numbercolumn',
- width: 120,
- renderer: function(v) {
- return saas.util.BaseUtil.numberFormat(v, 8, true);
- }
- }, {
- text: '型号',
- dataIndex: 'pr_orispeccode',
- width: 200
- }, {
- text: '厂家/品牌',
- dataIndex: 'pr_brand',
- width: 100
- }
- ]
- });
|