Ext.define('erp.view.scm.reserve.ProdCreateBarcode',{
extend: 'Ext.Viewport',
alias: 'widget.erpProdCreateBarcode',
hideBorders: true,
id: 'ProdCreateBarcode',
frame : true,
layout : 'column',
autoScroll : true,
cls: 'u-form-default',
fieldDefaults : {
fieldStyle : "background:#FFFAFA;color:#515151;",
focusCls: 'x-form-field-cir-focus',
labelAlign : "right",
msgTarget: 'side',
blankText : $I18N.common.form.blankText
},
FormUtil: Ext.create('erp.util.FormUtil'),
initComponent : function(){
var me = this;
Ext.apply(me, {
items: [{
layout: 'column',
items: [{
xtype: "window",
autoShow: true,
closable: true,
maximizable : true,
buttonAlign : 'center',
width: '75%',
height: '75%',
layout: 'column',
items: [
{ xtype: "textfield", name: "barCode", id:'barCode',labelAlign : "right",fieldLabel: '条码号', allowBlank: true,labelWidth:80,columnWidth: 0.83,margin: '20 0 0 0',maxLength:300,emptyText: '请采集条码信息',listeners:{
'render' : function() {
Ext.getCmp('barCode').focus(false, 100);
}
}}, {xtype:'button' , text:'清空',columnWidth: 0.07,margin: '20 0 0 0',handler: function(view, rowIndex, colIndex) {
Ext.getCmp('barCode').setValue("");
Ext.getCmp('barCode').focus(false, 100);
}} ,
{ xtype: 'dbfindtrigger',fieldLabel: '物料编号',id: 'pr_code',name: 'pr_code',
labelAlign : "right",allowBlank: false,labelWidth:80,columnWidth: 0.45,margin: '20 0 0 0'},
{ xtype: "textfield", name: "pr_partNumber", id:'pr_partNumber',labelAlign : "right",fieldLabel: '数量', allowBlank: false,labelWidth:80,columnWidth: 0.45,margin: '20 0 0 0'},
{ xtype: "textfield", name: "batchCode", id:'batchCode',labelAlign : "right",fieldLabel: '批号', allowBlank: true,labelWidth:80,columnWidth: 0.45,margin: '20 0 0 0',maxLength:30},
{ xtype: "textarea", name: "errMsg", id:'errMsg',labelAlign : "right",fieldLabel: '提示信息', allowBlank: true,labelWidth:80,columnWidth: 0.6,margin: '60 0 0 0',emptyText: '提示信息'},
],
buttons: [
{xtype: 'erpGenerateBarcodeButton'},
/*{
xtype: 'checkboxfield',
name: 'autoPrint',
id:'autoPrint1',
boxLabel: '自动打印条码',
checked:true
},*/
{xtype: 'erpCloseButton'}
]
}]
}]
});
me.callParent(arguments);
}
});