123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081 |
- Ext.define('make.view.osmake.report.inprocess.Inprocess', {
- extend: 'saas.view.core.report.ReportPanel',
- xtype: 'osmake-report-inprocess',
- controller: 'osmake-report-inprocess',
- viewModel: 'osmake-report-inprocess',
- viewName: 'osmake-report-inprocess',
- groupField: null,
- listUrl: '/api/make/report/osMakeInProcess',
- defaultCondition: null,
- reportTitle: '外协在制汇总表',
- QueryWidth:0.4,
- caller:'OsMakeInProcessReport',
- 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
- }, {
- text: '外协厂商',
- dataIndex: 'ma_vendname',
- width: 150
- }
- ]
- });
|