| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586 |
- Ext.define('saas.view.money.report.CustomerCheckController', {
- extend: 'saas.view.core.report.ReportPanelController',
- alias: 'controller.money-report-customercheck',
- init: function (form) {
- this.control({
- 'dbfindtrigger[name=pi_custname]':{
- beforerender:function(f){
- Ext.apply(f,{
- //数据接口
- dataUrl: '/api/document/customer/list',
- addXtype: 'document-customer-formpanel',
- addTitle: '客户资料',
- //赋值
- dbfinds:[{
- 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 : "search",
- getCondition: function(v) {
- return "(upper(cu_code) like '%"+v.toUpperCase()+"%' or upper(cu_name) like '%"+v.toUpperCase()+"%')";
- },
- allowBlank : true,
- columnWidth : 0.25
- }],
- //放大镜窗口列表
- 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_leftamount",
- "width": 100,
- xtype: 'numbercolumn',
- align:'end'
- },{
- "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'
- }]
- }) ;
- }
- }
- });
- }
- });
|