|
|
@@ -54,9 +54,9 @@ Ext.define('saas.view.stock.inventory.EditDataList', {
|
|
|
emptyText:'输入物料编号或名称',
|
|
|
width:200,
|
|
|
bind: '{form.pr_detail}',
|
|
|
- getCondition: function(value) {
|
|
|
- if(value) {
|
|
|
- return 'pr_detail like %' + value + '% or pr_code like%' + value + '%';
|
|
|
+ getCondition: function(v) {
|
|
|
+ if(v) {
|
|
|
+ return "(upper(pr_code) like '%"+v.toUpperCase()+"%' or upper(pr_detail) like '%"+v.toUpperCase()+"%')";
|
|
|
}else {
|
|
|
return '1 = 1';
|
|
|
}
|