|
|
@@ -24,15 +24,17 @@ Ext.define('saas.view.stock.make.FormPanelController', {
|
|
|
},{
|
|
|
field:'ve_name',width:100
|
|
|
}],
|
|
|
- //联想查询条件
|
|
|
- dbCondition:"CONCAT(ve_code, ve_name) like '{0}%'",
|
|
|
+ defaultCondition:"ve_statuscode='OPEN'",
|
|
|
//放大镜窗口字段
|
|
|
dbSearchFields:[{
|
|
|
+ emptyText:'输入仓库编号或名称',
|
|
|
xtype : "textfield",
|
|
|
- name : "ve_name",
|
|
|
- conditionExpression:"ve_name like '{0}%'",//传入后台条件 替换占位符
|
|
|
- fieldLabel : "供应商名称",
|
|
|
- columnWidth : 0.25
|
|
|
+ name : "name",
|
|
|
+ allowBlank : true,
|
|
|
+ columnWidth : 0.25,
|
|
|
+ getCondition:function(v){
|
|
|
+ return "upper(ve_code) like '%"+v.toUpperCase()+"%' or upper(ve_name) like '%"+v.toUpperCase()+"%'";
|
|
|
+ }
|
|
|
}],
|
|
|
//放大镜窗口列表
|
|
|
dbColumns:[{
|
|
|
@@ -81,22 +83,23 @@ Ext.define('saas.view.stock.make.FormPanelController', {
|
|
|
},{
|
|
|
from:'pr_unit',to:'pd_unit'
|
|
|
}],
|
|
|
- //联想查询条件
|
|
|
- dbCondition:"CONCAT(pr_code, pr_detail) like '{0}%'",
|
|
|
//联想设置
|
|
|
dbtpls:[{
|
|
|
field:'pr_code',width:100
|
|
|
},{
|
|
|
field:'pr_detail',width:100
|
|
|
}],
|
|
|
+ defaultCondition:"pr_statuscode='OPEN'",
|
|
|
//窗口字段设置
|
|
|
dbSearchFields:[{
|
|
|
- emptyText:'输入物料编号或物料名称',
|
|
|
+ emptyText:'输入仓库编号或名称',
|
|
|
xtype : "textfield",
|
|
|
- name : "search",
|
|
|
- conditionExpression:"CONCAT(pr_code, pr_detail) like '{0}%'",
|
|
|
+ name : "name",
|
|
|
allowBlank : true,
|
|
|
- columnWidth : 0.25
|
|
|
+ columnWidth : 0.25,
|
|
|
+ getCondition:function(v){
|
|
|
+ return "upper(pr_code) like '%"+v.toUpperCase()+"%' or upper(pr_detail) like '%"+v.toUpperCase()+"%'";
|
|
|
+ }
|
|
|
}],
|
|
|
//窗口列设置
|
|
|
dbColumns:[{
|
|
|
@@ -136,29 +139,32 @@ Ext.define('saas.view.stock.make.FormPanelController', {
|
|
|
beforerender:function(f){
|
|
|
Ext.apply(f,{
|
|
|
//数据接口
|
|
|
- dataUrl:'http://192.168.253.31:9480/product/getProductsByCondition',
|
|
|
+ dataUrl:'/api/document/product/list',
|
|
|
+ addXtype: 'document-product-formpanel',
|
|
|
+ addTitle: '物料资料',
|
|
|
//放大镜赋值设置
|
|
|
dbfinds:[{
|
|
|
from:'pr_code',to:'pd_prodcode'
|
|
|
},{
|
|
|
from:'pr_unit',to:'pd_unit'
|
|
|
}],
|
|
|
- //联想查询条件
|
|
|
- dbCondition:"CONCAT(pr_code, pr_detail) like '{0}%'",
|
|
|
//联想设置
|
|
|
dbtpls:[{
|
|
|
field:'pr_code',width:100
|
|
|
},{
|
|
|
field:'pr_detail',width:100
|
|
|
}],
|
|
|
+ defaultCondition:"pr_statuscode='OPEN'",
|
|
|
//窗口字段设置
|
|
|
dbSearchFields:[{
|
|
|
- emptyText:'输入物料编号或物料名称',
|
|
|
+ emptyText:'输入仓库编号或名称',
|
|
|
xtype : "textfield",
|
|
|
- name : "search",
|
|
|
- conditionExpression:"CONCAT(pr_code, pr_detail) like '{0}%'",
|
|
|
+ name : "name",
|
|
|
allowBlank : true,
|
|
|
- columnWidth : 0.25
|
|
|
+ columnWidth : 0.25,
|
|
|
+ getCondition:function(v){
|
|
|
+ return "upper(pr_code) like '%"+v.toUpperCase()+"%' or upper(pr_detail) like '%"+v.toUpperCase()+"%'";
|
|
|
+ }
|
|
|
}],
|
|
|
//窗口列设置
|
|
|
dbColumns:[{
|