| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- Ext.define('make.view.stock.makeScrap.BenchQueryPanel', {
- extend: 'saas.view.core.bench.Query',
- xtype: 'stock-makescrap-benchpanel',
- viewModel: {
- extend: 'saas.view.core.bench.QueryModel',
- stores: {
- menus: {
- model: 'saas.model.core.benchMenu',
- data: [
- {desc: '待报废',isCount: 1},
- {desc: '已报废',isCount: 0}
- ]
- }
- }
- },
- caller:'StockMakeScrap',
- hiddenMe:true,
- items: [
- {
- itemId: 'All',
- xtype: 'stock-makescrap-querypanel',
- addTitle: '生产报废',
- addXtype: 'make-makescrap-formpanel',
- defaultCondition: ' ms_class = \'生产报废\' ',
- baseVastUrl: '/api/make/makescrap/'
- },
- {
- //待报废
- itemId: 'stock-makescrap-benchpanel-1',
- xtype: 'stock-makescrap-querypanel-1',
- addTitle: '生产报废',
- addXtype: 'make-makescrap-formpanel',
- defaultCondition: ' ms_class = \'生产报废\' AND ms_statuscode <> \'AUDITED\' ',
- baseVastUrl: '/api/make/makescrap/',
- //countGroupFields:'pu_code',
- _needCount: true
- },
- {
- //已报废
- itemId: 'stock-makescrap-benchpanel-2',
- xtype: 'stock-makescrap-querypanel-2',
- addTitle: '生产报废',
- addXtype: 'make-makescrap-formpanel',
- defaultCondition: ' ms_class = \'生产报废\' AND ms_status=\'已审核\'',
- baseVastUrl: '/api/make/makescrap/',
- //countGroupFields:'pu_vendname,pu_currency',
- _needCount: true
- }
- ],
- countUrl:'make/makescrap/countByMake'
- });
|