| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- Ext.define('make.view.make.makeScrap.BenchQueryPanel', {
- extend: 'saas.view.core.bench.Query',
- xtype: 'make-makescrap-benchpanel',
- viewModel: {
- extend: 'saas.view.core.bench.QueryModel',
- stores: {
- menus: {
- model: 'saas.model.core.benchMenu',
- data: [
- {desc: '待报废',isCount: 1},
- {desc: '已报废',isCount: 0}
- ]
- }
- }
- },
- caller:'MakeScrap',
- hiddenMe:true,
- items: [
- {
- itemId: 'All',
- xtype: 'make-makescrap-querypanel',
- addTitle: '生产报废',
- addXtype: 'make-makescrap-formpanel',
- defaultCondition: ' ms_class = \'生产报废\' ',
- baseVastUrl: '/api/make/makescrap/'
- },
- {
- //待报废
- itemId: 'make-makescrap-benchpanel-1',
- xtype: 'make-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: 'make-makescrap-benchpanel-2',
- xtype: 'make-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',
- addBtnText:'新增报废单'
- });
|