|
|
@@ -1,8 +1,8 @@
|
|
|
Ext.define('saas.view.document.product.list.FormPanel', {
|
|
|
- extend: 'saas.view.core.baseform.FormPanel',
|
|
|
- xtype: 'product-list-formpanel',
|
|
|
- controller: 'product-list-formpanel',
|
|
|
- viewModel: 'product-list-formpanel',
|
|
|
+ extend: 'saas.view.core.base.BasePanel',
|
|
|
+ xtype: 'document-product-list-formpanel',
|
|
|
+ controller: 'document-product-list-formpanel',
|
|
|
+ viewModel: 'document-product-list-formpanel',
|
|
|
|
|
|
//工具类
|
|
|
FormUtil: Ext.create('saas.util.FormUtil'),
|
|
|
@@ -56,54 +56,46 @@ Ext.define('saas.view.document.product.list.FormPanel', {
|
|
|
}],
|
|
|
|
|
|
//字段属性
|
|
|
- _formXtype:'product-panel-formpanel',
|
|
|
+ _formXtype:'document-product-panel-formpanel',
|
|
|
_title:'物料资料',
|
|
|
- _dataUrl:basePath + 'document/product/list',
|
|
|
- _batchOpenUrl:basePath + 'document/product/batchOpen',
|
|
|
- _batchCloseUrl:basePath + 'document/product/batchClose',
|
|
|
- _batchDeleteUrl:basePath + 'document/product/batchDelete',
|
|
|
+ // _dataUrl:'http://192.168.253.31:9480/product/list',
|
|
|
+ _batchOpenUrl:'http://192.168.253.31:9480/product/batchOpen',
|
|
|
+ _batchCloseUrl:'http://192.168.253.31:9480/product/batchClose',
|
|
|
+ _batchDeleteUrl:'http://192.168.253.31:9480/product/batchDelete',
|
|
|
+
|
|
|
+ gridConfig: {
|
|
|
+ idField: 'id',
|
|
|
+ codeField: 'pr_code',
|
|
|
+ dataUrl: 'http://192.168.253.31:9480/product/list',
|
|
|
+ columns : [{
|
|
|
+ text : "id",
|
|
|
+ width : 0,
|
|
|
+ dataIndex : "id",
|
|
|
+ xtype : "numbercolumn",
|
|
|
+ },{
|
|
|
+ text : "物料编号",
|
|
|
+ width : 200.0,
|
|
|
+ dataIndex : "pr_code",
|
|
|
+ xtype : "",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ text : "物料名称",
|
|
|
+ dataIndex : "pr_detail",
|
|
|
+ width : 120.0,
|
|
|
+ xtype : "",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ text : "状态",
|
|
|
+ dataIndex : "pr_status",
|
|
|
+ width : 120.0,
|
|
|
+ xtype : ""
|
|
|
+ },
|
|
|
+ {
|
|
|
+ text : "物料种类",
|
|
|
+ dataIndex : "pr_type",
|
|
|
+ width : 120.0,
|
|
|
+ xtype : "",
|
|
|
+ }]
|
|
|
+ },
|
|
|
|
|
|
- initComponent: function () {
|
|
|
- var me = this;
|
|
|
- Ext.apply(me, {
|
|
|
- items: [{
|
|
|
- idField: 'id',
|
|
|
- codeField: 'pr_code',
|
|
|
- name : "baseGrid",
|
|
|
- xtype : "core-baseform-gridpanel",
|
|
|
- layout:'fit',
|
|
|
- dataUrl:me._dataUrl,
|
|
|
- columns : [{
|
|
|
- text : "id",
|
|
|
- width : 0,
|
|
|
- dataIndex : "id",
|
|
|
- xtype : "numbercolumn",
|
|
|
- },{
|
|
|
- text : "物料编号",
|
|
|
- width : 200.0,
|
|
|
- dataIndex : "pr_code",
|
|
|
- xtype : "",
|
|
|
- },
|
|
|
- {
|
|
|
- text : "物料名称",
|
|
|
- dataIndex : "pr_detail",
|
|
|
- width : 120.0,
|
|
|
- xtype : "",
|
|
|
- },
|
|
|
- {
|
|
|
- text : "状态",
|
|
|
- dataIndex : "pr_status",
|
|
|
- width : 120.0,
|
|
|
- xtype : ""
|
|
|
- },
|
|
|
- {
|
|
|
- text : "物料种类",
|
|
|
- dataIndex : "pr_type",
|
|
|
- width : 120.0,
|
|
|
- xtype : "",
|
|
|
- }]
|
|
|
- }]
|
|
|
- });
|
|
|
- me.callParent(arguments);
|
|
|
- }
|
|
|
});
|