|
|
@@ -112,6 +112,72 @@ Ext.define('saas.view.sale.sale.FormPanelController', {
|
|
|
}) ;
|
|
|
|
|
|
}
|
|
|
+ },// 主表-采购员名称
|
|
|
+ 'dbfindtrigger[name=sa_sellercode]':{
|
|
|
+ beforerender:function(f){
|
|
|
+ Ext.apply(f,{
|
|
|
+ //数据接口
|
|
|
+ dataUrl:'/api/document/employee/list',
|
|
|
+ addXtype: 'document-vendor-formpanel',
|
|
|
+ addTitle: '供应商资料',
|
|
|
+ //赋值
|
|
|
+ dbfinds:[{
|
|
|
+ from:'id',to:'id',ignore:true
|
|
|
+ },{
|
|
|
+ from:'em_code',to:'sa_sellercode'
|
|
|
+ },{
|
|
|
+ from:'em_name',to:'sa_seller'
|
|
|
+ }],
|
|
|
+ //联想设置
|
|
|
+ dbtpls:[{
|
|
|
+ field:'em_code',width:100
|
|
|
+ },{
|
|
|
+ field:'em_name',width:100
|
|
|
+ }],
|
|
|
+ defaultCondition: "em_class='正式'",
|
|
|
+ dbSearchFields:[{
|
|
|
+ emptyText:'输入人员编号或名称',
|
|
|
+ xtype : "textfield",
|
|
|
+ name : "search",
|
|
|
+ getCondition: function(v) {
|
|
|
+ return "(upper(em_code) like '%"+v.toUpperCase()+"%' or upper(em_name) like '%"+v.toUpperCase()+"%')";
|
|
|
+ },
|
|
|
+ allowBlank : true,
|
|
|
+ columnWidth : 0.25
|
|
|
+ }],
|
|
|
+ //放大镜窗口列表
|
|
|
+ dbColumns:[{
|
|
|
+ "text": "人员ID",
|
|
|
+ "hidden": true,
|
|
|
+ "dataIndex": "id",
|
|
|
+ "width": 0,
|
|
|
+ "xtype": "numbercolumn"
|
|
|
+ },{
|
|
|
+ "text": "人员编号",
|
|
|
+ "dataIndex": "em_code",
|
|
|
+ "width": 200
|
|
|
+ }, {
|
|
|
+ "text": "人员名称",
|
|
|
+ "dataIndex": "em_name",
|
|
|
+ "width": 200
|
|
|
+ }, {
|
|
|
+ "text": "类型",
|
|
|
+ "dataIndex": "em_class",
|
|
|
+ "width": 180,
|
|
|
+ "items": null
|
|
|
+ }, {
|
|
|
+ "text": "手机",
|
|
|
+ "dataIndex": "em_mobile",
|
|
|
+ "width": 180,
|
|
|
+ "items": null
|
|
|
+ }, {
|
|
|
+ "text": "邮箱",
|
|
|
+ "dataIndex": "em_email",
|
|
|
+ "width": 180,
|
|
|
+ "items": null
|
|
|
+ }]
|
|
|
+ }) ;
|
|
|
+ }
|
|
|
},
|
|
|
//放大镜赋值关系 以及 tpl模板
|
|
|
'multidbfindtrigger[name=sd_prodcode]':{
|