Browse Source

物料资料提交

zhouy 7 years ago
parent
commit
53fe2d0ff9
1 changed files with 31 additions and 31 deletions
  1. 31 31
      frontend/saas-web/app/view/document/product/BasePanel.js

+ 31 - 31
frontend/saas-web/app/view/document/product/BasePanel.js

@@ -11,21 +11,19 @@ Ext.define('saas.view.document.product.BasePanel', {
     searchField:[{
         xtype : "textfield", 
         name : "pr_code", 
-        width:150, 
-        emptyText:'编号'
-    }, {
-        xtype : "textfield", 
-        name : "pr_detail", 
-        width:150, 
-        emptyText:'名称'
-    }, {
+        width:300, 
+        emptyText:'输入物料编号、名称、型号或规格',
+        getCondition: function (v) {
+            return "(upper(CONCAT(pr_code,'#',pr_detail,'#',pr_spec,'#',pr_orispeccode)) like '%" + v.toUpperCase() + "%')";
+        },
+    },{
         editable:true,
         hiddenBtn:true,
         xtype : "remotecombo", 
         storeUrl: '/api/document/producttype/getCombo',
         name : "pr_kind", 
         emptyText : "物料类型",
-        width:110,
+        width:120,
     }, {
         xtype : "textfield", 
         name : "pr_brand", 
@@ -81,42 +79,46 @@ Ext.define('saas.view.document.product.BasePanel', {
             text : "物料编号", 
             dataIndex : "pr_code", 
             width : 150.0
+        }, {
+            text : "类型", 
+            dataIndex : "pr_kind", 
+            width : 110.0
         }, {
             text : "物料名称", 
             dataIndex : "pr_detail", 
             width : 200.0
+        }, {
+            text : "型号", 
+            dataIndex : "pr_orispeccode", 
+            width : 150.0
         }, {
             text : "规格", 
             dataIndex : "pr_spec", 
             width : 150.0
-        }, {
-            text : "类型", 
-            dataIndex : "pr_kind", 
-            width : 110.0
-        }, {
-            text : "单位", 
-            dataIndex : "pr_unit", 
-            width : 80.0 
-        }, {
+        },{
             text : "品牌", 
             dataIndex : "pr_brand", 
             width : 110.0 
-        }, {
-            text : "库存", 
+        },  {
+            text : "库存", 
             dataIndex : "po_onhand",
             xtype: 'numbercolumn',
-            width : 110.0,
+            width : 120.0,
             renderer : function(v) {
                 var arr = (v + '.').split('.');
                 var xr = (new Array(arr[1].length > 3 ? 3 : arr[1].length)).fill('0');
                 var format = '0.' + xr.join();
                 return Ext.util.Format.number(v, format);
             }
+        },{
+            text : "单位", 
+            dataIndex : "pr_unit", 
+            width : 80.0 
         }, {
-            text : "标准单价", 
+            text : "标准定价(元)", 
             dataIndex : "pr_standardprice",
             xtype: 'numbercolumn',
-            width : 110.0,
+            width : 130.0,
             renderer : function(v) {
                 var arr = (v + '.').split('.');
                 var xr = (new Array(arr[1].length > 8 ? 8 : arr[1].length)).fill('0');
@@ -124,29 +126,27 @@ Ext.define('saas.view.document.product.BasePanel', {
                 return Ext.util.Format.number(v, format);
             }
         }, {
-            text : "最新采购价", 
+            text : "最新采购价(元)", 
             dataIndex : "pr_purcprice",
             xtype: 'numbercolumn',
-            width : 110.0,
+            width : 140.0,
             renderer : function(v) {
                 var arr = (v + '.').split('.');
                 var xr = (new Array(arr[1].length > 8 ? 8 : arr[1].length)).fill('0');
                 var format = '0.' + xr.join();
                 return Ext.util.Format.number(v, format);
-            }, 
-            width : 200.0, 
+            }
         }, {
-            text : "最新出库价", 
+            text : "最新售价(元)", 
             dataIndex : "pr_saleprice",
             xtype: 'numbercolumn',
-            width : 110.0,
+            width : 120.0,
             renderer : function(v) {
                 var arr = (v + '.').split('.');
                 var xr = (new Array(arr[1].length > 8 ? 8 : arr[1].length)).fill('0');
                 var format = '0.' + xr.join();
                 return Ext.util.Format.number(v, format);
-            }, 
-            width : 200.0, 
+            }
         }, {
             text : "备注", 
             dataIndex : "pr_text1",