| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899 |
- 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:[{
- hiddenBtn:true,
- xtype : "remotecombo",
- storeUrl:'/api/document/customerkind/getCombo',
- name : "cu_type",
- emptyText : "请选择客户类型",
- allowBlank : true,
- queryMode: 'local',
- displayField: 'display',
- valueField: 'value',
- columnWidth : 0.25,
- etc:{
- customerkind:{
- keyField:'id',
- dataField:'ck_name',
- reqUrl:'/api/document/customerkind/save',
- delUrl:'/api/document/customerkind/delete'
- }
- },
- addHandler:function(b){
- var form = this.ownerCmp.ownerCt.ownerCt;
- this.dialog = form.getController().getView().add({
- xtype: 'document-kind-childwin',
- bind: {
- title: '新增客户类型'
- },
- dataKind:'customerkind',
- belong:this.ownerCmp.etc['customerkind'],
- _parent:form,
- record:null,
- session: true
- });
- this.dialog.show();
- }
- }],
- //字段属性
- _formXtype:'document-customer-formpanel',
- _title:'客户资料',
- // _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 : "ca_address",
- width : 120.0,
- },
- {
- text : "默认客户联系人",
- dataIndex : "cc_name",
- flex : 1.0,
- }]
- },
- });
|