Browse Source

修改盘点单前端

zhoudw 7 years ago
parent
commit
a38d50d66d
1 changed files with 11 additions and 12 deletions
  1. 11 12
      frontend/saas-web/app/view/stock/inventory/EditDataList.js

+ 11 - 12
frontend/saas-web/app/view/stock/inventory/EditDataList.js

@@ -17,17 +17,17 @@ Ext.define('saas.view.stock.inventory.EditDataList', {
         'Ext.selection.CellModel',
         'Ext.grid.plugin.Exporter'
     ],
-    plugins: {
-        cellediting: {
-            clicksToEdit: 1,
-            listeners: {
-                // edit: function(editor, context, eOpts) {
-                //     context.column.fireEvent('edit', context.value);
-                // }
-            }
-        },
-        gridexporter: true
+    plugins: [ 
+    {
+        ptype: 'cellediting',
+        clicksToEdit: 1
     },
+    {
+        ptype: 'gridexporter',
+    },
+    {
+        ptype: 'menuclipboard'
+    }],
     tbar: [{
         xtype: 'warehouseDbfindTrigger',
         name: 'wh_description',
@@ -44,8 +44,7 @@ Ext.define('saas.view.stock.inventory.EditDataList', {
         name : "pr_kind",
         bind: '{form.pr_kind}',
         emptyText : "类型",
-        hiddenBtn:true, 
-        allowBlank : false,
+        hiddenBtn:true,
         width:150
     },{
         // xtype: 'productDbfindTrigger',