|
|
@@ -29,37 +29,36 @@ Ext.define('saas.view.stock.inventory.EditDataList', {
|
|
|
ptype: 'menuclipboard'
|
|
|
}],
|
|
|
tbar: [{
|
|
|
+ xtype: 'textfield',
|
|
|
+ name: 'pr_detail',
|
|
|
+ emptyText:'输入物料编号或名称',
|
|
|
+ width:200,
|
|
|
+ bind: '{form.pr_detail}',
|
|
|
+ getCondition: function(v) {
|
|
|
+ if(v) {
|
|
|
+ return "(upper(pr_code) like '%"+v.toUpperCase()+"%' or upper(pr_detail) like '%"+v.toUpperCase()+"%')";
|
|
|
+ }else {
|
|
|
+ return '1 = 1';
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },{
|
|
|
xtype: 'warehouseDbfindTrigger',
|
|
|
name: 'wh_description',
|
|
|
bind: '{form.wh_description}',
|
|
|
- emptyText: '仓库',
|
|
|
+ fieldLabel: '仓库',
|
|
|
dbfinds:[{
|
|
|
from:'wh_description',to:'wh_description'
|
|
|
}],
|
|
|
- width:150,
|
|
|
+ //width:150,
|
|
|
},{
|
|
|
editable:true,
|
|
|
xtype : "remotecombo",
|
|
|
storeUrl:'/api/document/producttype/getCombo',
|
|
|
name : "pr_kind",
|
|
|
bind: '{form.pr_kind}',
|
|
|
- emptyText : "类型",
|
|
|
+ fieldLabel : "类型",
|
|
|
hiddenBtn:true,
|
|
|
- width:150
|
|
|
- },{
|
|
|
- // xtype: 'productDbfindTrigger',
|
|
|
- xtype: 'textfield',
|
|
|
- name: 'pr_detail',
|
|
|
- emptyText:'输入物料编号或名称',
|
|
|
- width:200,
|
|
|
- bind: '{form.pr_detail}',
|
|
|
- getCondition: function(v) {
|
|
|
- if(v) {
|
|
|
- return "(upper(pr_code) like '%"+v.toUpperCase()+"%' or upper(pr_detail) like '%"+v.toUpperCase()+"%')";
|
|
|
- }else {
|
|
|
- return '1 = 1';
|
|
|
- }
|
|
|
- }
|
|
|
+ //width:150
|
|
|
},{
|
|
|
cls:'x-formpanel-btn-blue',
|
|
|
xtype:'button',
|