|
|
@@ -60,24 +60,25 @@ Ext.define('saas.view.document.product.FormPanel', {
|
|
|
fieldLabel: '规格',
|
|
|
allowBlank: false,
|
|
|
columnWidth: 0.25
|
|
|
- },{
|
|
|
+ },{
|
|
|
editable:false,
|
|
|
xtype : "remotecombo",
|
|
|
- storeUrl:'/api/document/producttype/getCombo',
|
|
|
- name : "pr_kind",
|
|
|
- fieldLabel : "物料类型",
|
|
|
+ storeUrl:'/api/document/productunit/getCombo',
|
|
|
+ name : "pr_unit",
|
|
|
+ fieldLabel : "单位",
|
|
|
allowBlank : false,
|
|
|
columnWidth : 0.25,
|
|
|
+ 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: '新增物料类型'
|
|
|
+ title: '新增物料单位'
|
|
|
},
|
|
|
- dataKind:'productkind',
|
|
|
- belong:document.etc['productkind'],
|
|
|
+ dataKind:'productunit',
|
|
|
+ belong:document.etc['productunit'],
|
|
|
_parent:form,
|
|
|
_combo:this.ownerCmp,
|
|
|
record:null,
|
|
|
@@ -86,30 +87,37 @@ Ext.define('saas.view.document.product.FormPanel', {
|
|
|
this.dialog.show();
|
|
|
}
|
|
|
},{
|
|
|
- xtype: 'textfield',
|
|
|
- name: 'pr_orispeccode',
|
|
|
- fieldLabel: '型号',
|
|
|
- allowBlank: true,
|
|
|
- columnWidth: 0.25
|
|
|
- },{
|
|
|
+ xtype : "dbfindtrigger",
|
|
|
+ name : "pr_vendcode",
|
|
|
+ bind : "{pr_vendcode}",
|
|
|
+ fieldLabel : "供应商编号",
|
|
|
+ allowBlank : true,
|
|
|
+ columnWidth : 0.25,
|
|
|
+ }, {
|
|
|
+ xtype : "textfield",
|
|
|
+ name : "pr_vendname",
|
|
|
+ bind : "{pr_vendname}",
|
|
|
+ fieldLabel : "供应商名称",
|
|
|
+ allowBlank : true,
|
|
|
+ columnWidth : 0.25
|
|
|
+ },{
|
|
|
editable:false,
|
|
|
xtype : "remotecombo",
|
|
|
- storeUrl:'/api/document/productunit/getCombo',
|
|
|
- name : "pr_unit",
|
|
|
- fieldLabel : "物料单位",
|
|
|
+ storeUrl:'/api/document/producttype/getCombo',
|
|
|
+ name : "pr_kind",
|
|
|
+ fieldLabel : "类型",
|
|
|
allowBlank : false,
|
|
|
columnWidth : 0.25,
|
|
|
- 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: '新增物料单位'
|
|
|
+ title: '新增物料类型'
|
|
|
},
|
|
|
- dataKind:'productunit',
|
|
|
- belong:document.etc['productunit'],
|
|
|
+ dataKind:'productkind',
|
|
|
+ belong:document.etc['productkind'],
|
|
|
_parent:form,
|
|
|
_combo:this.ownerCmp,
|
|
|
record:null,
|
|
|
@@ -117,6 +125,12 @@ Ext.define('saas.view.document.product.FormPanel', {
|
|
|
});
|
|
|
this.dialog.show();
|
|
|
}
|
|
|
+ },{
|
|
|
+ xtype: 'textfield',
|
|
|
+ name: 'pr_orispeccode',
|
|
|
+ fieldLabel: '型号',
|
|
|
+ allowBlank: true,
|
|
|
+ columnWidth: 0.25
|
|
|
},{
|
|
|
editable:false,
|
|
|
xtype : "remotecombo",
|
|
|
@@ -142,20 +156,6 @@ Ext.define('saas.view.document.product.FormPanel', {
|
|
|
});
|
|
|
this.dialog.show();
|
|
|
}
|
|
|
- },{
|
|
|
- xtype : "dbfindtrigger",
|
|
|
- name : "pr_vendcode",
|
|
|
- bind : "{pr_vendcode}",
|
|
|
- fieldLabel : "供应商编号",
|
|
|
- allowBlank : true,
|
|
|
- columnWidth : 0.25,
|
|
|
- }, {
|
|
|
- xtype : "textfield",
|
|
|
- name : "pr_vendname",
|
|
|
- bind : "{pr_vendname}",
|
|
|
- fieldLabel : "供应商名称",
|
|
|
- allowBlank : true,
|
|
|
- columnWidth : 0.25
|
|
|
},{
|
|
|
xtype : "hidden",
|
|
|
name : "pr_vendid",
|