|
|
@@ -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
|