|
|
@@ -5,115 +5,146 @@ Ext.define('saas.view.money.othreceipts.FormPanelController', {
|
|
|
var me = this;
|
|
|
this.control({
|
|
|
//放大镜赋值关系 以及 tpl模板
|
|
|
- 'dbfindtrigger[name=or_custname]':{
|
|
|
- beforerender:function(f){
|
|
|
- Ext.apply(f,{
|
|
|
- dataUrl:'/api/document/customer/dbfind',
|
|
|
+ 'dbfindtrigger[name=or_custname]': {
|
|
|
+ beforerender: function (f) {
|
|
|
+ Ext.apply(f, {
|
|
|
+ dataUrl: '/api/document/customer/dbfind',
|
|
|
addXtype: 'document-customer-formpanel',
|
|
|
addTitle: '客户资料',
|
|
|
- dbfinds:[{
|
|
|
- from:'id',to:'or_custid'
|
|
|
- },{
|
|
|
- from:'cu_code',to:'or_custcode'
|
|
|
- },{
|
|
|
- from:'cu_name',to:'or_custname'
|
|
|
+ defaultCondition: "cu_statuscode='OPEN'",
|
|
|
+ dbfinds: [{
|
|
|
+ from: 'id',
|
|
|
+ to: 'or_custid'
|
|
|
+ }, {
|
|
|
+ from: 'cu_code',
|
|
|
+ to: 'or_custcode'
|
|
|
+ }, {
|
|
|
+ from: 'cu_name',
|
|
|
+ to: 'or_custname'
|
|
|
+ }],
|
|
|
+ dbtpls: [{
|
|
|
+ field: 'cu_code',
|
|
|
+ width: 100
|
|
|
+ }, {
|
|
|
+ field: 'cu_name',
|
|
|
+ width: 100
|
|
|
}],
|
|
|
- dbtpls:[{
|
|
|
- field:'cu_code',width:100
|
|
|
- },{
|
|
|
- field:'cu_name',width:100
|
|
|
+ dbSearchFields: [{
|
|
|
+ emptyText: '输入客户编号或客户名称',
|
|
|
+ xtype: "textfield",
|
|
|
+ name: "search",
|
|
|
+ getCondition: function (v) {
|
|
|
+ return "CONCAT(cu_code, cu_name) like '%" + v + "%'";
|
|
|
+ },
|
|
|
+ allowBlank: true,
|
|
|
+ columnWidth: 0.25
|
|
|
}],
|
|
|
- dbColumns:[
|
|
|
- {
|
|
|
- conditionCode:'id',
|
|
|
- "text": "客户ID",
|
|
|
- "flex": 0,
|
|
|
- "dataIndex": "id",
|
|
|
- "width": 0,
|
|
|
- "xtype": "",
|
|
|
- "items": null
|
|
|
- },{
|
|
|
- conditionCode:'cu_code',
|
|
|
- "text": "客户编号",
|
|
|
- "flex": 1,
|
|
|
- "dataIndex": "cu_code",
|
|
|
- "width": 100,
|
|
|
- "xtype": "",
|
|
|
- "items": null
|
|
|
- }, {
|
|
|
- conditionCode:'cu_name',
|
|
|
- "text": "客户名称",
|
|
|
- "flex": 1,
|
|
|
- "dataIndex": "cu_name",
|
|
|
- "xtype": "",
|
|
|
- "items": null
|
|
|
- }, {
|
|
|
- conditionCode:'cu_type',
|
|
|
- "text": "客户类型",
|
|
|
- "flex": 1,
|
|
|
- "dataIndex": "cu_type",
|
|
|
- "width": 200,
|
|
|
- "xtype": "",
|
|
|
- "items": null
|
|
|
- }, {
|
|
|
- "text": "业务员编号",
|
|
|
- "flex": 1,
|
|
|
- "dataIndex": "cu_sellercode",
|
|
|
- "width": 100
|
|
|
- }, {
|
|
|
- "text": "业务员",
|
|
|
- "flex": 1,
|
|
|
- "dataIndex": "cu_sellername",
|
|
|
- "width": 100
|
|
|
- }, {
|
|
|
- "text": "税率",
|
|
|
- "flex": 1,
|
|
|
- "dataIndex": "cu_taxrate",
|
|
|
- "width": 100
|
|
|
- }, {
|
|
|
- "text": "承付天数",
|
|
|
- "flex": 1,
|
|
|
- "dataIndex": "cu_promisedays",
|
|
|
- "width": 100
|
|
|
- }, {
|
|
|
- "text": "额度",
|
|
|
- "flex": 1,
|
|
|
- "dataIndex": "cu_credit",
|
|
|
- "width": 100
|
|
|
- }, {
|
|
|
- "text": "客户地址",
|
|
|
- "flex": 1,
|
|
|
- "dataIndex": "ca_address",
|
|
|
- "width": 250
|
|
|
- }]
|
|
|
- }) ;
|
|
|
+ dbColumns: [{
|
|
|
+ conditionCode: 'id',
|
|
|
+ "text": "客户ID",
|
|
|
+ "flex": 0,
|
|
|
+ "dataIndex": "id",
|
|
|
+ "width": 0,
|
|
|
+ "xtype": "",
|
|
|
+ "items": null
|
|
|
+ }, {
|
|
|
+ conditionCode: 'cu_code',
|
|
|
+ "text": "客户编号",
|
|
|
+ "flex": 1,
|
|
|
+ "dataIndex": "cu_code",
|
|
|
+ "width": 100,
|
|
|
+ "xtype": "",
|
|
|
+ "items": null
|
|
|
+ }, {
|
|
|
+ conditionCode: 'cu_name',
|
|
|
+ "text": "客户名称",
|
|
|
+ "flex": 1,
|
|
|
+ "dataIndex": "cu_name",
|
|
|
+ "xtype": "",
|
|
|
+ "items": null
|
|
|
+ }, {
|
|
|
+ conditionCode: 'cu_type',
|
|
|
+ "text": "客户类型",
|
|
|
+ "flex": 1,
|
|
|
+ "dataIndex": "cu_type",
|
|
|
+ "width": 200,
|
|
|
+ "xtype": "",
|
|
|
+ "items": null
|
|
|
+ }, {
|
|
|
+ "text": "业务员编号",
|
|
|
+ "flex": 1,
|
|
|
+ "dataIndex": "cu_sellercode",
|
|
|
+ "width": 100
|
|
|
+ }, {
|
|
|
+ "text": "业务员",
|
|
|
+ "flex": 1,
|
|
|
+ "dataIndex": "cu_sellername",
|
|
|
+ "width": 100
|
|
|
+ }, {
|
|
|
+ "text": "税率",
|
|
|
+ "flex": 1,
|
|
|
+ "dataIndex": "cu_taxrate",
|
|
|
+ "width": 100
|
|
|
+ }, {
|
|
|
+ "text": "承付天数",
|
|
|
+ "flex": 1,
|
|
|
+ "dataIndex": "cu_promisedays",
|
|
|
+ "width": 100
|
|
|
+ }, {
|
|
|
+ "text": "额度",
|
|
|
+ "flex": 1,
|
|
|
+ "dataIndex": "cu_credit",
|
|
|
+ "width": 100
|
|
|
+ }, {
|
|
|
+ "text": "客户地址",
|
|
|
+ "flex": 1,
|
|
|
+ "dataIndex": "ca_address",
|
|
|
+ "width": 250
|
|
|
+ }]
|
|
|
+ });
|
|
|
|
|
|
}
|
|
|
- },
|
|
|
+ },
|
|
|
//放大镜赋值关系 以及 tpl模板
|
|
|
- 'dbfindtrigger[name=or_bankname]':{
|
|
|
- beforerender:function(f){
|
|
|
- Ext.apply(f,{
|
|
|
- dataUrl:'/api/document/bankinformation/list',
|
|
|
- dbfinds:[{
|
|
|
- from:'bk_bankcode',to:'or_bankcode'
|
|
|
- },{
|
|
|
- from:'bk_bankname',to:'or_bankname'
|
|
|
- },{
|
|
|
- from:'id',to:'or_bankid'
|
|
|
- }],
|
|
|
- dbtpls:[{
|
|
|
- field:'bk_bankcode',width:100
|
|
|
- },{
|
|
|
- field:'bk_bankname',width:100
|
|
|
+ 'dbfindtrigger[name=or_bankname]': {
|
|
|
+ beforerender: function (f) {
|
|
|
+ Ext.apply(f, {
|
|
|
+ dataUrl: '/api/document/bankinformation/list',
|
|
|
+ dbfinds: [{
|
|
|
+ from: 'bk_bankcode',
|
|
|
+ to: 'or_bankcode'
|
|
|
+ }, {
|
|
|
+ from: 'bk_bankname',
|
|
|
+ to: 'or_bankname'
|
|
|
+ }, {
|
|
|
+ from: 'id',
|
|
|
+ to: 'or_bankid'
|
|
|
}],
|
|
|
- dbColumns:[{
|
|
|
+ // defaultCondition: "bk_statuscode='OPEN'",
|
|
|
+ dbtpls: [{
|
|
|
+ field: 'bk_bankcode',
|
|
|
+ width: 100
|
|
|
+ }, {
|
|
|
+ field: 'bk_bankname',
|
|
|
+ width: 100
|
|
|
+ }],
|
|
|
+ dbSearchFields: [{
|
|
|
+ emptyText: '输入银行账户编号或名称',
|
|
|
+ xtype: "textfield",
|
|
|
+ name: "search",
|
|
|
+ getCondition: function (v) {
|
|
|
+ return "CONCAT(bk_bankcode, bk_bankname) like '%" + v + "%'";
|
|
|
+ },
|
|
|
+ allowBlank: true,
|
|
|
+ columnWidth: 0.25
|
|
|
+ }],
|
|
|
+ dbColumns: [{
|
|
|
"text": "账户ID",
|
|
|
"flex": 0,
|
|
|
"dataIndex": "id",
|
|
|
"width": 0,
|
|
|
"xtype": ""
|
|
|
- },{
|
|
|
+ }, {
|
|
|
"text": "账户编号",
|
|
|
"flex": 1,
|
|
|
"dataIndex": "bk_bankcode",
|
|
|
@@ -144,7 +175,7 @@ Ext.define('saas.view.money.othreceipts.FormPanelController', {
|
|
|
"width": 120,
|
|
|
"xtype": "datecolumn"
|
|
|
}]
|
|
|
- }) ;
|
|
|
+ });
|
|
|
|
|
|
}
|
|
|
}
|