📄 custinfo.js
字号:
},
scope : this
}, {
id : 'activity',
text : '客户交往记录',
icon : 'images/bt_acti.gif',
handler : function() {
this.showPanel('cstActivity', '客户交往记录', custActivityPanel);
},
scope : this
}]
});
e.preventDefault();
this.menu.showAt(e.getXY());
},
initComponent : function() {
CRM.custManage.custInfo.superclass.initComponent.call(this);
custInfoStore.load({
params : {
start : 0,
limit : 10
}
});
this.add(custInfoGrid);
custInfoGrid.on("celldblclick", function() {
this.edit();
}, this);
custInfoGrid.addListener("rowContextmenu", this.showMenu, this);
}
});
custInfoPanel = Ext.extend(CRM.custManage.custInfo, {
id : 'custInfo',
baseUrl : 'customer.do',
createForm : function() {
var formPanel = new Ext.form.FormPanel({
labelWidth : 70,
frame : true,
autoHeight : true,
resizable : false,
labelAlign : 'right',
defaultType : 'textfield',
items : [{
xtype : 'fieldset',
title : ' ',
autoHeight : true,
items : [{
layout : 'column',
border : false,
items : [{
columnWidth : .5,
layout : 'form',
defaultType : 'textfield',
items : [{
name : 'custNo',
fieldLabel : '客户编号'
}]
}, {
columnWidth : .5,
layout : 'form',
defaultType : 'textfield',
items : [{
name : 'custName',
fieldLabel : '名称',
editable : false,
allowBlank : false,
blankText : '名称为必填项'
}]
}]
}, {
layout : 'column',
border : false,
items : [{
columnWidth : .5,
layout : 'form',
defaultType : 'textfield',
items : [{
xtype : 'combo',
name : 'custRegion',
fieldLabel : '地区',
width : 125,
store : new Ext.data.SimpleStore({
fields : ['custRegion'],
data : [['北京'], ['华北'], ['中南'], ['东北'], ['西部']]
}),
displayField : 'custRegion',
mode : 'local',
forceSelection : true,
editable : false,
triggerAction : 'all',
allowBlank : false,
BlankText : '地区为必填项',
emptyText : '请选择地区'
}]
}, {
columnWidth : .5,
layout : 'form',
defaultType : 'textfield',
items : [{
xtype : 'combo',
hiddenName : 'custManagerName',
fieldLabel : '客户经理',
width : 125,
store : new Ext.data.JsonStore({
url : 'customer.do?actionType=doFindAllManager',
root : 'data',
totalProperty : 'rowCount',
fields : ['manName']
}),
displayField : 'manName',
pageSize : 10,
forceSelection : true,
triggerAction : 'all',
editable : false,
allowBlank : false,
blankText : '客户经理为必填项'
}]
}]
}, {
layout : 'column',
border : false,
items : [{
columnWidth : .5,
layout : 'form',
defaultType : 'textfield',
items : [{
xtype : 'combo',
name : 'custLevel',
width : 125,
fieldLabel : '客户等级',
store : new Ext.data.SimpleStore({
fields : ['cstLevel'],
data : [['普通客户'], ['重点开发客户'], ['大客户'],
['合作伙伴'], ['战略合作伙伴']]
}),
displayField : 'cstLevel',
mode : 'local',
forceSelection : true,
editable : false,
triggerAction : 'all',
allowBlank : false,
BlankText : '客户等级为必填项',
emptyText : '请选择客户等级'
}]
}, {
columnWidth : .5,
layout : 'form',
defaultType : 'textfield',
items : [{
xtype : 'combo',
name : 'custSatisfy',
width : 125,
fieldLabel : '客户满意度',
store : new Ext.data.SimpleStore({
fields : ['cstSatisfy'],
data : [['☆'], ['☆☆'], ['☆☆☆'], ['☆☆☆☆'],
['☆☆☆☆☆']]
}),
displayField : 'cstSatisfy',
mode : 'local',
forceSelection : true,
editable : false,
triggerAction : 'all',
allowBlank : false,
blankText : '客户满意度为必填项',
emptyText : '请选择客户满意度'
}]
}]
}, {
layout : 'column',
border : false,
items : [{
columnWidth : .5,
layout : 'form',
defaultType : 'textfield',
items : [{
xtype : 'combo',
name : 'custCredit',
width : 125,
fieldLabel : '客户信用度',
store : new Ext.data.SimpleStore({
fields : ['cstCredit'],
data : [['☆'], ['☆☆'], ['☆☆☆'], ['☆☆☆☆'],
['☆☆☆☆☆']]
}),
displayField : 'cstCredit',
mode : 'local',
forceSelection : true,
editable : false,
triggerAction : 'all',
allowBlank : false,
blankText : '客户信用度为必填项',
emptyText : '请选择客户信息度'
}]
}]
}]
}, {
xtype : 'fieldset',
title : ' ',
autoHeight : true,
items : [{
layout : 'column',
border : false,
items : [{
columnWidth : .5,
layout : 'form',
defaultType : 'textfield',
items : [{
name : 'custAddr',
fieldLabel : '地址',
allowBlank : false,
blankText : '地址为必填项'
}]
}, {
columnWidth : .5,
layout : 'form',
defaultType : 'textfield',
items : [{
xtype : 'numberfield',
name : 'custZip',
fieldLabel : '邮政编码',
editable : false,
allowBlank : false,
blankText : '邮政编码为必填项'
}]
}]
}, {
layout : 'column',
border : false,
items : [{
columnWidth : .5,
layout : 'form',
defaultType : 'textfield',
items : [{
name : 'custTel',
fieldLabel : '电话',
allowBlank : false,
BlankText : '电话为必填项'
}]
}, {
columnWidth : .5,
layout : 'form',
defaultType : 'textfield',
items : [{
name : 'custFax',
fieldLabel : '传真',
allowBlank : false,
blankText : '传真为必填项'
}]
}]
}, {
layout : 'column',
border : false,
items : [{
columnWidth : .5,
layout : 'form',
defaultType : 'textfield',
items : [{
name : 'custWebsite',
fieldLabel : '网址',
allowBlank : false,
BlankText : '网址为必填项'
}]
}]
}]
}, {
xtype : 'fieldset',
title : ' ',
autoHeight : true,
items : [{
layout : 'column',
border : false,
items : [{
columnWidth : .5,
layout : 'form',
defaultType : 'textfield',
items : [{
name : 'custLicenceNo',
fieldLabel : '营业执照注册号'
}]
}, {
columnWidth : .5,
layout : 'form',
defaultType : 'textfield',
items : [{
name : 'custChieftain',
fieldLabel : '法人',
allowBlank : false,
blankText : '法人为必填项'
}]
}]
}, {
layout : 'column',
border : false,
items : [{
columnWidth : .5,
layout : 'form',
defaultType : 'textfield',
items : [{
name : 'custBankroll',
fieldLabel : '注册资金(万元)'
}]
}, {
columnWidth : .5,
layout : 'form',
defaultType : 'textfield',
items : [{
name : 'custTurnover',
fieldLabel : '年营业额'
}]
}]
}, {
layout : 'column',
border : false,
items : [{
columnWidth : .5,
layout : 'form',
defaultType : 'textfield',
items : [{
name : 'custBank',
fieldLabel : '开户银行',
allowBlank : false,
BlankText : '开户银行为必填项'
}]
}, {
columnWidth : .5,
layout : 'form',
defaultType : 'textfield',
items : [{
xtype : 'numberfield',
name : 'custBankAccount',
fieldLabel : '银行账号',
allowBlank : false,
BlankText : '银行账号为必填项'
}]
}]
}, {
layout : 'column',
border : false,
items : [{
columnWidth : .5,
layout : 'form',
defaultType : 'textfield',
items : [{
name : 'custLocalTaxNo',
fieldLabel : '地税登记号'
}]
}, {
columnWidth : .5,
layout : 'form',
defaultType : 'textfield',
items : [{
name : 'custNationalTaxNo',
fieldLabel : '国税登记号'
}]
}]
}]
}]
});
return formPanel;
},
createWin : function() {
return this.initWin(555, 490, '客户信息管理');
},
initComponent : function() {
custInfoPanel.superclass.initComponent.call(this);
}
});
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -