|
|
@@ -14,7 +14,7 @@ Ext.define('saas.view.money.othreceipts.FormPanelController', {
|
|
|
defaultCondition: "cu_statuscode='OPEN'",
|
|
|
dbfinds: [{
|
|
|
from: 'id',
|
|
|
- to: 'or_custid'
|
|
|
+ to: 'or_custid',ignore:true
|
|
|
}, {
|
|
|
from: 'cu_code',
|
|
|
to: 'or_custcode'
|
|
|
@@ -39,77 +39,74 @@ Ext.define('saas.view.money.othreceipts.FormPanelController', {
|
|
|
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,
|
|
|
- xtype: 'numbercolumn',
|
|
|
- align:'end'
|
|
|
- }, {
|
|
|
- "text": "承付天数",
|
|
|
- "flex": 1,
|
|
|
- "dataIndex": "cu_promisedays",
|
|
|
- "width": 100,
|
|
|
- xtype: 'numbercolumn',
|
|
|
- align:'end',
|
|
|
- renderer : function(v) {
|
|
|
- return Ext.util.Format.number(v, '0');
|
|
|
- }
|
|
|
- }, {
|
|
|
- "text": "额度",
|
|
|
- "flex": 1,
|
|
|
- "dataIndex": "cu_credit",
|
|
|
- "width": 100,
|
|
|
- xtype: 'numbercolumn',
|
|
|
- align:'end'
|
|
|
- }, {
|
|
|
- "text": "客户地址",
|
|
|
- "flex": 1,
|
|
|
- "dataIndex": "ca_address",
|
|
|
- "width": 250
|
|
|
- }]
|
|
|
+ dbColumns:[
|
|
|
+ {
|
|
|
+ "text": "客户ID",
|
|
|
+ "flex": 0,
|
|
|
+ "dataIndex": "id",
|
|
|
+ "width": 0,
|
|
|
+ "xtype": "",
|
|
|
+ "items": null
|
|
|
+ },{
|
|
|
+ "text": "客户编号",
|
|
|
+ "flex": 1,
|
|
|
+ "dataIndex": "cu_code",
|
|
|
+ "width": 100,
|
|
|
+ "xtype": "",
|
|
|
+ "items": null
|
|
|
+ }, {
|
|
|
+ "text": "客户名称",
|
|
|
+ "flex": 1,
|
|
|
+ "dataIndex": "cu_name",
|
|
|
+ "xtype": "",
|
|
|
+ "items": null
|
|
|
+ }, {
|
|
|
+ "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,
|
|
|
+ xtype: 'numbercolumn',
|
|
|
+ align:'end'
|
|
|
+ }, {
|
|
|
+ "text": "承付天数",
|
|
|
+ "flex": 1,
|
|
|
+ "dataIndex": "cu_promisedays",
|
|
|
+ "width": 100,
|
|
|
+ xtype: 'numbercolumn',
|
|
|
+ align:'end',
|
|
|
+ renderer : function(v) {
|
|
|
+ return Ext.util.Format.number(v, '0');
|
|
|
+ }
|
|
|
+ }, {
|
|
|
+ "text": "额度",
|
|
|
+ "flex": 1,
|
|
|
+ "dataIndex": "cu_credit",
|
|
|
+ "width": 100,
|
|
|
+ xtype: 'numbercolumn',
|
|
|
+ align:'end'
|
|
|
+ }, {
|
|
|
+ "text": "客户地址",
|
|
|
+ "flex": 2,
|
|
|
+ "dataIndex": "ca_address",
|
|
|
+ "width": 300
|
|
|
+ }]
|
|
|
});
|
|
|
|
|
|
}
|
|
|
@@ -129,7 +126,7 @@ Ext.define('saas.view.money.othreceipts.FormPanelController', {
|
|
|
to: 'or_bankname'
|
|
|
}, {
|
|
|
from: 'id',
|
|
|
- to: 'or_bankid'
|
|
|
+ to: 'or_bankid',ignore:true
|
|
|
}],
|
|
|
// defaultCondition: "bk_statuscode='OPEN'",
|
|
|
dbtpls: [{
|