| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798 |
- Ext.define('saas.view.document.customer.BasePanel', {
- extend: 'saas.view.core.base.BasePanel',
- xtype: 'document-customer-basepanel',
- controller: 'document-customer-basepanel',
- viewModel: 'document-customer-basepanel',
- searchField:[{
- editable:false,
- hiddenBtn:true,
- xtype : "remotecombo",
- storeUrl:'/api/document/customerkind/getCombo',
- name : "cu_type",
- emptyText : "请选择客户类型",
- columnWidth : 0.25
- },{
- xtype : "textfield",
- name : "cu_name",
- emptyText : "客户名称",
- columnWidth : 0.25,
- },{
- xtype : "textfield",
- name : "cu_code",
- emptyText : "客户编号",
- columnWidth : 0.25,
- },{
- labelAlign:'left',
- fieldLabel : "显示不启用",
- xtype:"checkbox",
- name:"cu_statuscode"
- }],
- //字段属性
- _formXtype:'document-customer-formpanel',
- _title:'客户资料',
- _deleteUrl:'/api/document/customer/delete/',
- // _dataUrl:'/api/ducument/customer/list',
- _batchOpenUrl:'/api/document/customer/batchOpen',
- _batchCloseUrl:'/api/document/customer/batchClose',
- _batchDeleteUrl:'/api/document/customer/batchDelete',
- gridConfig: {
- idField: 'id',
- codeField: 'cu_code',
- statusCodeField:'cu_statuscode',
- dataUrl: '/api/document/customer/list',
- columns : [{
- text : "客户id",
- width : 0,
- dataIndex : "id",
- xtype : "numbercolumn",
- },{
- text : "客户编号",
- width : 200.0,
- dataIndex : "cu_code",
- },
- {
- text : "客户名称",
- dataIndex : "cu_name",
- width : 120.0,
- },
- {
- text : "客户状态",
- dataIndex : "cu_status",
- width : 120.0,
- },
- {
- text : "客户状态码",
- dataIndex : "cu_statuscode",
- width : 0,
- },
- {
- text : "客户UU",
- dataIndex : "cu_uu",
- width : 120.0,
- },
- {
- text : "客户类型",
- dataIndex : "cu_type",
- width : 120.0,
- },
- {
- text : "默认客户地址",
- dataIndex : "ca_address",
- width : 120.0,
- },
- {
- text : "默认客户联系人",
- dataIndex : "cc_name",
- flex : 1.0,
- }]
- },
- refresh:function(){
- this.items.items[0].store.load()
- }
- });
|