| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182 |
- Ext.define('saas.view.document.bom.BasePanel', {
- extend: 'saas.view.core.base.BasePanel',
- xtype: 'document-bom-basepanel',
- controller: 'document-bom-basepanel',
- viewModel: 'document-bom-basepanel',
- deleteMoreMsg: '删除的BOM资料将不能恢复,请确认是否删除?',
- deleteOneMsg: '删除的BOM资料将不能恢复,请确认是否删除?',
- searchField:[{
- xtype : "textfield",
- name : "bo_mothercode",
- emptyText : "产品编号",
- width:120
- },{
- xtype : "textfield",
- name : "bo_mothername",
- emptyText : "产品名称",
- width:120
- },{
- xtype : "textfield",
- name : "bo_status",
- emptyText : "产品状态",
- width:100
- }],
- //字段属性
- _formXtype:'document-bom-formpanel',
- _title:'BOM资料',
- _deleteUrl:'/api/document/bom/delete/',
- // _dataUrl:'/api/ducument/customer/list',
- _batchOpenUrl:'/api/document/bom/batchOpen',
- _batchCloseUrl:'/api/document/bom/batchClose',
- _batchDeleteUrl:'/api/document/bom/batchDelete',
- gridConfig: {
- idField: 'id',
- codeField: 'bo_mothercode',
- statusCodeField:'bo_statuscode',
- dataUrl: '/api/document/bom/list',
- columns : [{
- text : "id",
- width : 0,
- dataIndex : "id",
- xtype : "numbercolumn",
- },{
- text : "产品id",
- width : 0,
- dataIndex : "bo_motherid",
- xtype : "numbercolumn",
- },{
- text : "产品编号",
- dataIndex : "bo_mothercode",
- width : 200.0,
- },
- {
- text : "产品名称",
- dataIndex : "bo_mothername",
- width : 120.0,
- },
- {
- text : "产品状态",
- dataIndex : "bo_status",
- width : 120.0,
- },
- {
- text : "产品状态码",
- dataIndex : "bo_statuscode",
- width : 0,
- },
- {
- text : "产品版本",
- dataIndex : "bo_version",
- width : 120.0,
- }]
- },
- refresh:function(){
- this.items.items[0].store.load()
- }
- });
|