1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374 |
- Ext.define('saas.view.make.ecndetail.QueryPanel', {
- extend: 'saas.view.core.query.QueryPanel',
- xtype: 'make-ecndetail-querypanel',
- controller: 'make-ecndetail-querypanel',
- viewModel: 'make-ecndetail-querypanel',
- viewName: 'make-ecndetail-querypanel',
- useMoreQuery: false,
- caller:'EcnDetail',
- initComponent: function () {
- let me = this;
- Ext.apply(this, {
- queryFormItems: [{
- margin: '0 0 0 20',
- xtype: 'textfield',
- name: 'ed_soncode',
- emptyText: '输入物料编号',
- getCondition: function (value) {
- if (value == null || value == '') {
- return '1=1';
- } else {
- return 'ed_soncode like \'%' + value + '%\' or ed_newsoncode like \'%' + value + '%\'';
- }
- }
- }],
- queryGridConfig: {
- idField: 'id',
- defaultCondition: 'ed_boid='+me.initId,
- baseVastUrl: '/api/make/ecndetail/',
- caller: 'EcnDetail',
- baseColumn: [{
- text: 'id',
- dataIndex: 'id',
- hidden: true,
- xtype: 'numbercolumn'
- },{
- text: '操作人员',
- dataIndex: 'creatorName',
- align: 'center',
- width: 120
-
- }, {
- text: '操作时间',
- dataIndex: 'createTime',
- align: 'center',
- xtype: 'datecolumn',
- width: 150,
- renderer: function(v, m, r) {
- return Ext.Date.format(new Date(v), 'Y-m-d H:i:s');
- }
- }, {
- text: '操作类型',
- dataIndex: 'ed_type',
- align: 'center',
- width: 100
- }, {
- text: '行号',
- dataIndex: 'ed_bddetno',
- align: 'center',
- width: 60
- }, {
- text: '修改内容',
- dataIndex: 'ed_history',
- width: 700
- }],
- relativeColumn: []
- }
- });
- this.callParent(arguments);
- },
- });
|