|
|
@@ -281,14 +281,13 @@ Ext.define('saas.view.stock.appropriationInOut.FormPanelController', {
|
|
|
beforerender:function(f){
|
|
|
Ext.apply(f,{
|
|
|
dataUrl:'/api/document/warehouse/list',
|
|
|
- // dataUrl:'http://localhost:9480/warehouse/list',
|
|
|
addXtype: 'other-warehouse',
|
|
|
addTitle: '仓库资料',
|
|
|
defaultCondition:"wh_statuscode='OPEN'",
|
|
|
dbfinds:[{
|
|
|
- from:'id',to:'pd_whid'
|
|
|
+ from:'id',to:'id',ignore:true
|
|
|
},{
|
|
|
- from:'wh_code',to:'pd_whcode'
|
|
|
+ from:'wh_code',to:'wh_code'
|
|
|
},{
|
|
|
from:'wh_description',to:'pd_whname'
|
|
|
}],
|
|
|
@@ -304,9 +303,9 @@ Ext.define('saas.view.stock.appropriationInOut.FormPanelController', {
|
|
|
allowBlank : true,
|
|
|
columnWidth : 0.25,
|
|
|
getCondition:function(v){
|
|
|
- return "upper(wh_code) like '%"+v.toUpperCase()+"%' or upper(wh_description) like '%"+v.toUpperCase()+"%'";
|
|
|
+ return "(upper(wh_code) like '%"+v.toUpperCase()+"%' or upper(wh_description) like '%"+v.toUpperCase()+"%')";
|
|
|
}
|
|
|
- }],
|
|
|
+ }],
|
|
|
dbColumns:[{
|
|
|
"text": "仓库ID",
|
|
|
"flex": 0,
|
|
|
@@ -327,117 +326,78 @@ Ext.define('saas.view.stock.appropriationInOut.FormPanelController', {
|
|
|
"dataIndex": "wh_description",
|
|
|
"xtype": "",
|
|
|
"items": null
|
|
|
- }, ]
|
|
|
+ }, {
|
|
|
+ "text": "仓库类型",
|
|
|
+ "flex": 1,
|
|
|
+ "dataIndex": "wh_type",
|
|
|
+ "xtype": "",
|
|
|
+ "items": null
|
|
|
+ }]
|
|
|
}) ;
|
|
|
|
|
|
}
|
|
|
},
|
|
|
//放大镜赋值关系 以及 tpl模板
|
|
|
'dbfindtrigger[name=pd_inwhname]':{
|
|
|
- beforerender:function(f){
|
|
|
- Ext.apply(f,{
|
|
|
- dataUrl:'/api/document/warehouse/list',
|
|
|
- // dataUrl:'http://localhost:9480/warehouse/list',
|
|
|
- addXtype: 'other-warehouse',
|
|
|
- addTitle: '仓库资料',
|
|
|
- defaultCondition:"wh_statuscode='OPEN'",
|
|
|
- dbfinds:[{
|
|
|
- from:'id',to:'pd_inwhid'
|
|
|
- },{
|
|
|
- from:'wh_code',to:'pd_inwhcode'
|
|
|
- },{
|
|
|
- from:'wh_description',to:'pd_inwhname'
|
|
|
- }],
|
|
|
- dbtpls:[{
|
|
|
- field:'pd_inwhcode',width:100
|
|
|
- },{
|
|
|
- field:'pd_inwhname',width:100
|
|
|
- }],
|
|
|
- dbSearchFields:[{
|
|
|
- emptyText:'输入仓库编号或名称',
|
|
|
- xtype : "textfield",
|
|
|
- name : "wh_code",
|
|
|
- allowBlank : true,
|
|
|
- columnWidth : 0.25,
|
|
|
- getCondition:function(v){
|
|
|
- return "upper(wh_code) like '%"+v.toUpperCase()+"%' or upper(wh_description) like '%"+v.toUpperCase()+"%'";
|
|
|
- }
|
|
|
- }],
|
|
|
- dbColumns:[{
|
|
|
- "text": "仓库ID",
|
|
|
- "flex": 0,
|
|
|
- "dataIndex": "id",
|
|
|
- "width": 0,
|
|
|
- "xtype": "",
|
|
|
- "items": null
|
|
|
- },{
|
|
|
- "text": "仓库编号",
|
|
|
- "flex": 1,
|
|
|
- "dataIndex": "wh_code",
|
|
|
- "width": 100,
|
|
|
- "xtype": "",
|
|
|
- "items": null
|
|
|
- }, {
|
|
|
- "text": "仓库名称",
|
|
|
- "flex": 1,
|
|
|
- "dataIndex": "wh_description",
|
|
|
- "xtype": "",
|
|
|
- "items": null
|
|
|
- },{
|
|
|
- "text": "仓库类型",
|
|
|
- "flex": 1,
|
|
|
- "dataIndex": "wh_type",
|
|
|
- "xtype": "",
|
|
|
- "items": null
|
|
|
- }]
|
|
|
- }) ;
|
|
|
-
|
|
|
- }
|
|
|
- },
|
|
|
- //放大镜赋值关系 以及 tpl模板
|
|
|
- 'dbfindtrigger[name=pd_inwhname]':{
|
|
|
- beforerender:function(f){
|
|
|
- Ext.apply(f,{
|
|
|
- dataUrl:'/api/document/warehouse/list',
|
|
|
- // dataUrl:'http://localhost:9480/warehouse/list',
|
|
|
- dbfinds:[{
|
|
|
- from:'id',to:'pd_inwhid'
|
|
|
- },{
|
|
|
- from:'wh_code',to:'pd_inwhcode'
|
|
|
- },{
|
|
|
- from:'wh_description',to:'pd_inwhname'
|
|
|
- }],
|
|
|
- dbtpls:[{
|
|
|
- field:'pd_inwhcode',width:100
|
|
|
- },{
|
|
|
- field:'pd_inwhname',width:100
|
|
|
- }],
|
|
|
- dbColumns:[{
|
|
|
- "text": "仓库ID",
|
|
|
- "flex": 0,
|
|
|
- "dataIndex": "id",
|
|
|
- "width": 0,
|
|
|
- "xtype": "",
|
|
|
- "items": null
|
|
|
- },{
|
|
|
- "text": "仓库编号",
|
|
|
- "flex": 1,
|
|
|
- "dataIndex": "wh_code",
|
|
|
- "width": 100,
|
|
|
- "xtype": "",
|
|
|
- "items": null
|
|
|
- }, {
|
|
|
- "text": "仓库名称",
|
|
|
- "flex": 1,
|
|
|
- "dataIndex": "wh_description",
|
|
|
- "xtype": "",
|
|
|
- "items": null
|
|
|
- }, ]
|
|
|
- }) ;
|
|
|
-
|
|
|
- }
|
|
|
- }
|
|
|
+ beforerender:function(f){
|
|
|
+ Ext.apply(f,{
|
|
|
+ dataUrl:'/api/document/warehouse/list',
|
|
|
+ addXtype: 'other-warehouse',
|
|
|
+ addTitle: '仓库资料',
|
|
|
+ defaultCondition:"wh_statuscode='OPEN'",
|
|
|
+ dbfinds:[{
|
|
|
+ from:'id',to:'id',ignore:true
|
|
|
+ },{
|
|
|
+ from:'wh_code',to:'wh_code'
|
|
|
+ },{
|
|
|
+ from:'wh_description',to:'pd_inwhname'
|
|
|
+ }],
|
|
|
+ dbtpls:[{
|
|
|
+ field:'pd_whcode',width:100
|
|
|
+ },{
|
|
|
+ field:'pd_whname',width:100
|
|
|
+ }],
|
|
|
+ dbSearchFields:[{
|
|
|
+ emptyText:'输入仓库编号或名称',
|
|
|
+ xtype : "textfield",
|
|
|
+ name : "wh_code",
|
|
|
+ allowBlank : true,
|
|
|
+ columnWidth : 0.25,
|
|
|
+ getCondition:function(v){
|
|
|
+ return "(upper(wh_code) like '%"+v.toUpperCase()+"%' or upper(wh_description) like '%"+v.toUpperCase()+"%')";
|
|
|
+ }
|
|
|
+ }],
|
|
|
+ dbColumns:[{
|
|
|
+ "text": "仓库ID",
|
|
|
+ "flex": 0,
|
|
|
+ "dataIndex": "id",
|
|
|
+ "width": 0,
|
|
|
+ "xtype": "",
|
|
|
+ "items": null
|
|
|
+ },{
|
|
|
+ "text": "仓库编号",
|
|
|
+ "flex": 1,
|
|
|
+ "dataIndex": "wh_code",
|
|
|
+ "width": 100,
|
|
|
+ "xtype": "",
|
|
|
+ "items": null
|
|
|
+ }, {
|
|
|
+ "text": "仓库名称",
|
|
|
+ "flex": 1,
|
|
|
+ "dataIndex": "wh_description",
|
|
|
+ "xtype": "",
|
|
|
+ "items": null
|
|
|
+ }, {
|
|
|
+ "text": "仓库类型",
|
|
|
+ "flex": 1,
|
|
|
+ "dataIndex": "wh_type",
|
|
|
+ "xtype": "",
|
|
|
+ "items": null
|
|
|
+ }]
|
|
|
+ }) ;
|
|
|
|
|
|
+ }
|
|
|
+ }
|
|
|
});
|
|
|
|
|
|
},
|