|
|
@@ -90,6 +90,8 @@ Ext.define('saas.view.stock.otherOut.QueryPanelController', {
|
|
|
addXtype: 'document-product-formpanel',
|
|
|
addTitle: '物料资料',
|
|
|
dbfinds:[{
|
|
|
+ from:'pr_detail',to:'pr_detail',
|
|
|
+ },{
|
|
|
from:'pr_code',to:'pd_prodcode',
|
|
|
}, {
|
|
|
from:'pr_detail',to:'pr_detail'
|
|
|
@@ -101,7 +103,7 @@ Ext.define('saas.view.stock.otherOut.QueryPanelController', {
|
|
|
}],
|
|
|
defaultCondition: "pr_statuscode='OPEN'",
|
|
|
dbSearchFields:[{
|
|
|
- emptyText:'输入物料编号、名称或规格',
|
|
|
+ emptyText:'输入物料编号或名称',
|
|
|
xtype : "textfield",
|
|
|
name : "search",
|
|
|
width: 200,
|
|
|
@@ -179,7 +181,83 @@ Ext.define('saas.view.stock.otherOut.QueryPanelController', {
|
|
|
}) ;
|
|
|
|
|
|
}
|
|
|
- }
|
|
|
+ },
|
|
|
+ 'dbfindtrigger[name=pi_custname]': {
|
|
|
+ beforerender: function (f) {
|
|
|
+ Ext.apply(f, {
|
|
|
+ addXtype: 'document-customer-formpanel',
|
|
|
+ addTitle: '客户资料',
|
|
|
+ dataUrl: '/api/document/customer/list',
|
|
|
+ // dataUrl:'http://localhost:9480/customer/list',
|
|
|
+ dbfinds: [{
|
|
|
+ from: 'id',to: 'pi_custid',ignore:true
|
|
|
+ }, {
|
|
|
+ from: 'cu_code',to: 'pi_custcode'
|
|
|
+ }, {
|
|
|
+ from: 'cu_name',to: 'pi_custname'
|
|
|
+ }],
|
|
|
+ dbtpls: [{
|
|
|
+ field: 'cu_code',
|
|
|
+ width: 100
|
|
|
+ }, {
|
|
|
+ field: 'cu_name',
|
|
|
+ width: 100
|
|
|
+ }],
|
|
|
+ defaultCondition:"cu_statuscode='OPEN'",
|
|
|
+ //放大镜窗口字段
|
|
|
+ dbSearchFields:[{
|
|
|
+ emptyText:'输入客户编号或名称',
|
|
|
+ xtype : "textfield",
|
|
|
+ name : "cu_name",
|
|
|
+ allowBlank : true,
|
|
|
+ columnWidth : 0.25,
|
|
|
+ getCondition:function(v){
|
|
|
+ return "(upper(cu_name) like '%"+v.toUpperCase()+"%' or upper(cu_code) like '%"+v.toUpperCase()+"%')";
|
|
|
+ }
|
|
|
+ }],
|
|
|
+ dbColumns:[{
|
|
|
+ "text": "客户ID",
|
|
|
+ "hidden": true,
|
|
|
+ "dataIndex": "id",
|
|
|
+ },{
|
|
|
+ "text": "客户编号",
|
|
|
+ "dataIndex": "cu_code",
|
|
|
+ "width": 200,
|
|
|
+ }, {
|
|
|
+ "text": "客户名称",
|
|
|
+ "dataIndex": "cu_name",
|
|
|
+ "width": 200
|
|
|
+ },{
|
|
|
+ "text": "客户类型",
|
|
|
+ "dataIndex": "cu_name",
|
|
|
+ "width": 100
|
|
|
+ },{
|
|
|
+ "text": "业务员",
|
|
|
+ "dataIndex": "cu_sellername",
|
|
|
+ "width": 100
|
|
|
+ },{
|
|
|
+ "text": "税率",
|
|
|
+ "dataIndex": "cu_taxrate",
|
|
|
+ "width": 100,
|
|
|
+ xtype: 'numbercolumn',
|
|
|
+ align:'end'
|
|
|
+ },{
|
|
|
+ "text": "承付天数",
|
|
|
+ "dataIndex": "cu_promisedays",
|
|
|
+ "width": 100,
|
|
|
+ xtype: 'numbercolumn',
|
|
|
+ align:'end'
|
|
|
+ },{
|
|
|
+ "text": "额度",
|
|
|
+ "dataIndex": "cu_credit",
|
|
|
+ "width": 100,
|
|
|
+ xtype: 'numbercolumn',
|
|
|
+ align:'end'
|
|
|
+ }]
|
|
|
+ });
|
|
|
+
|
|
|
+ }
|
|
|
+ },
|
|
|
});
|
|
|
|
|
|
}
|