|
@@ -94,7 +94,6 @@ Ext.define('saas.view.purchase.purchase.FormPanelController', {
|
|
|
dataUrl: '/api/document/product/list',
|
|
dataUrl: '/api/document/product/list',
|
|
|
addXtype: 'document-product-formpanel',
|
|
addXtype: 'document-product-formpanel',
|
|
|
addTitle: '物料资料',
|
|
addTitle: '物料资料',
|
|
|
- defaultCondition:"pr_statuscode='OPEN'",
|
|
|
|
|
//放大镜赋值设置
|
|
//放大镜赋值设置
|
|
|
dbfinds:[{
|
|
dbfinds:[{
|
|
|
from:'id',to:'pd_prodid'
|
|
from:'id',to:'pd_prodid'
|
|
@@ -111,13 +110,14 @@ Ext.define('saas.view.purchase.purchase.FormPanelController', {
|
|
|
},{
|
|
},{
|
|
|
field:'pr_detail',width:100
|
|
field:'pr_detail',width:100
|
|
|
}],
|
|
}],
|
|
|
- //窗口字段设置
|
|
|
|
|
|
|
+ defaultCondition: 'pr_statuscode="OPEN"',
|
|
|
dbSearchFields:[{
|
|
dbSearchFields:[{
|
|
|
- emptyText:'输入物料编号或物料名称',
|
|
|
|
|
|
|
+ emptyText:'输入物料编号、名称或规格',
|
|
|
xtype : "textfield",
|
|
xtype : "textfield",
|
|
|
name : "search",
|
|
name : "search",
|
|
|
|
|
+ width: 200,
|
|
|
getCondition: function(v) {
|
|
getCondition: function(v) {
|
|
|
- return "upper(pr_code) like '%"+v.toUpperCase()+"%' or upper(pr_detail) like '%"+v.toUpperCase()+"%'";
|
|
|
|
|
|
|
+ return "upper(pr_spec) like '%" + v.toUpperCase()+"%' or upper(pr_code) like '%"+v.toUpperCase()+"%' or upper(pr_detail) like '%"+v.toUpperCase()+"%'";
|
|
|
},
|
|
},
|
|
|
allowBlank : true,
|
|
allowBlank : true,
|
|
|
columnWidth : 0.25
|
|
columnWidth : 0.25
|
|
@@ -125,8 +125,9 @@ Ext.define('saas.view.purchase.purchase.FormPanelController', {
|
|
|
//窗口列设置
|
|
//窗口列设置
|
|
|
dbColumns:[{
|
|
dbColumns:[{
|
|
|
"text": "物料ID",
|
|
"text": "物料ID",
|
|
|
|
|
+ "hidden": true,
|
|
|
"dataIndex": "id",
|
|
"dataIndex": "id",
|
|
|
- },{
|
|
|
|
|
|
|
+ }, {
|
|
|
"text": "物料编号",
|
|
"text": "物料编号",
|
|
|
"dataIndex": "pr_code",
|
|
"dataIndex": "pr_code",
|
|
|
}, {
|
|
}, {
|