Browse Source

BOM资料标准化

hy 7 years ago
parent
commit
b62b30852c

+ 4 - 0
frontend/saas-web/app/view/document/bom/FormController.js

@@ -34,6 +34,10 @@ Ext.define('saas.view.document.bom.FormController', {
                             from:'pr_detail',to:'pr_detail'
                         },{
                             from:'pr_spec',to:'pr_spec'
+                        },{
+                            from:'pr_orispeccode',to:'pr_orispeccode'
+                        },{
+                            from:'pr_brand',to:'pr_brand'
                         },{
                             from:'pr_unit',to:'bd_unit'
                         },{

+ 45 - 15
frontend/saas-web/app/view/document/bom/FormPanel.js

@@ -67,8 +67,13 @@ Ext.define('saas.view.document.bom.FormPanel', {
         allowBlank: false
     },{
         xtype: 'textfield',
-        name: 'pr_spec',
-        fieldLabel: '产品规格',
+        name: 'pr_brand',
+        fieldLabel: '产品品牌',
+        readOnly:true,
+    },{
+        xtype: 'textfield',
+        name: 'pr_orispeccode',
+        fieldLabel: '产品型号',
         readOnly:true,
     },{
         xtype: 'textfield',
@@ -121,29 +126,54 @@ Ext.define('saas.view.document.bom.FormPanel', {
                 text: 'model映射需要',
                 dataIndex: 'productDTO',
                 hidden: true,
-            }, {
-                text : "物料名称", 
-                dataIndex : "pr_detail", 
-                width : 200,
+            },
+            {
+                text : "品牌", 
+                width : 150.0, 
+                dataIndex : "pr_brand",
                 ignore:true,
                 renderer: function (v, m, r) {
                     if(!v){
-                        return r.data["productDTO"]?r.data["productDTO"][m.column.dataIndex]:null;
-                    }
+                        return r.data["productDTO"]?r.data["productDTO"][m.column.dataIndex]:null; 
+                    }                     
                     return v;
                 }
-            }, {
-                text : "物料规格", 
-                dataIndex : "pr_spec", 
-                width : 150,
+            },
+            {
+                text : "名称", 
+                width : 200.0, 
+                dataIndex : "pr_detail",
                 ignore:true,
                 renderer: function (v, m, r) {
                     if(!v){
-                        return r.data["productDTO"]?r.data["productDTO"][m.column.dataIndex]:null;
-                    }
+                        return r.data["productDTO"]?r.data["productDTO"][m.column.dataIndex]:null; 
+                    }                     
                     return v;
                 }
-            }, {
+            },
+            {
+                text : "型号", 
+                width : 200.0, 
+                dataIndex : "pr_orispeccode",
+                ignore:true,
+                renderer: function (v, m, r) {
+                    if(!v){
+                        return r.data["productDTO"]?r.data["productDTO"][m.column.dataIndex]:null; 
+                    }                     
+                    return v;
+                }
+            },{
+                text : "规格", 
+                width : 150, 
+                dataIndex : "pr_spec",
+                ignore:true,
+                renderer: function (v, m, r) {
+                    if(!v){
+                        return r.data["productDTO"]?r.data["productDTO"][m.column.dataIndex]:null; 
+                    }                     
+                    return v;
+                }
+            },{
                 text : "单位", 
                 dataIndex : "bd_unit", 
                 width : 80