|
|
@@ -51,92 +51,66 @@ Ext.define('saas.view.document.product.FormPanel', {
|
|
|
allowBlank: true,
|
|
|
columnWidth: 0.25
|
|
|
},{
|
|
|
+ editable:false,
|
|
|
xtype : "remotecombo",
|
|
|
storeUrl:'/api/document/producttype/getCombo',
|
|
|
name : "pr_type",
|
|
|
fieldLabel : "物料类型",
|
|
|
- allowBlank : true,
|
|
|
- queryMode: 'local',
|
|
|
- displayField: 'display',
|
|
|
- valueField: 'value',
|
|
|
+ allowBlank : false,
|
|
|
columnWidth : 0.25,
|
|
|
- etc:{
|
|
|
- producttype:{
|
|
|
- keyField:'id',
|
|
|
- dataField:'pr_name',
|
|
|
- reqUrl:'/api/document/producttype/save',
|
|
|
- delUrl:'/api/document/producttype/delete'
|
|
|
- }
|
|
|
- },
|
|
|
addHandler:function(b){
|
|
|
+ var document = Ext.create('saas.view.document.kind.Kind',{});
|
|
|
var form = this.ownerCmp.ownerCt;
|
|
|
this.dialog = form.getController().getView().add({
|
|
|
xtype: 'document-kind-childwin',
|
|
|
bind: {
|
|
|
- title: '新增物料类型'
|
|
|
+ title: '新增供应商类型'
|
|
|
},
|
|
|
dataKind:'producttype',
|
|
|
- belong:this.ownerCmp.etc['producttype'],
|
|
|
+ belong:document.etc['producttype'],
|
|
|
_parent:form,
|
|
|
+ _combo:this.ownerCmp,
|
|
|
record:null,
|
|
|
session: true
|
|
|
});
|
|
|
this.dialog.show();
|
|
|
}
|
|
|
},{
|
|
|
+ editable:false,
|
|
|
xtype : "remotecombo",
|
|
|
- storeUrl:'/api/document/product/getProdUnit',
|
|
|
+ storeUrl:'/api/document/productunit/getCombo',
|
|
|
name : "pr_unit",
|
|
|
- bind : "{pr_unit}",
|
|
|
fieldLabel : "物料单位",
|
|
|
- allowBlank : true,
|
|
|
- queryMode: 'local',
|
|
|
- displayField: 'display',
|
|
|
- valueField: 'value',
|
|
|
+ allowBlank : false,
|
|
|
columnWidth : 0.25,
|
|
|
- etc:{
|
|
|
- produnit:{
|
|
|
- keyField:'id',
|
|
|
- dataField:'vk_name',
|
|
|
- reqUrl:'/api/document/produnit/save',
|
|
|
- delUrl:'/api/document/produnit/delete'
|
|
|
- }
|
|
|
- },
|
|
|
+ editable:false,
|
|
|
addHandler:function(b){
|
|
|
+ var document = Ext.create('saas.view.document.kind.Kind',{});
|
|
|
var form = this.ownerCmp.ownerCt;
|
|
|
this.dialog = form.getController().getView().add({
|
|
|
xtype: 'document-kind-childwin',
|
|
|
bind: {
|
|
|
title: '新增物料单位'
|
|
|
},
|
|
|
- dataKind:'vendorkind',
|
|
|
- belong:this.ownerCmp.etc['vendorkind'],
|
|
|
+ dataKind:'productunit',
|
|
|
+ belong:document.etc['productunit'],
|
|
|
_parent:form,
|
|
|
+ _combo:this.ownerCmp,
|
|
|
record:null,
|
|
|
session: true
|
|
|
});
|
|
|
this.dialog.show();
|
|
|
}
|
|
|
},{
|
|
|
+ editable:false,
|
|
|
xtype : "remotecombo",
|
|
|
- storeUrl:'/api/document/product/getProdBrand',
|
|
|
+ storeUrl:'/api/document/productbrand/getCombo',
|
|
|
name : "pr_brand",
|
|
|
- bind : "{pr_brand}",
|
|
|
fieldLabel : "物料品牌",
|
|
|
- allowBlank : true,
|
|
|
- queryMode: 'local',
|
|
|
- displayField: 'display',
|
|
|
- valueField: 'value',
|
|
|
+ allowBlank : false,
|
|
|
columnWidth : 0.25,
|
|
|
- etc:{
|
|
|
- productbrand:{
|
|
|
- keyField:'id',
|
|
|
- dataField:'pb_name',
|
|
|
- reqUrl:'/api/document/productbrand/save',
|
|
|
- delUrl:'/api/document/productbrand/delete'
|
|
|
- }
|
|
|
- },
|
|
|
addHandler:function(b){
|
|
|
+ var document = Ext.create('saas.view.document.kind.Kind',{});
|
|
|
var form = this.ownerCmp.ownerCt;
|
|
|
this.dialog = form.getController().getView().add({
|
|
|
xtype: 'document-kind-childwin',
|
|
|
@@ -144,8 +118,9 @@ Ext.define('saas.view.document.product.FormPanel', {
|
|
|
title: '新增物料单位'
|
|
|
},
|
|
|
dataKind:'productbrand',
|
|
|
- belong:this.ownerCmp.etc['productbrand'],
|
|
|
+ belong:document.etc['productbrand'],
|
|
|
_parent:form,
|
|
|
+ _combo:this.ownerCmp,
|
|
|
record:null,
|
|
|
session: true
|
|
|
});
|