| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140 |
- Ext.define('saas.view.money.othspendings.QueryPanelController', {
- extend: 'saas.view.core.query.QueryPanelController',
- alias: 'controller.money-othspendings-querypanel',
- init: function (form) {
- var me = this;
- this.control({
- //放大镜赋值关系 以及 tpl模板
- 'dbfindtrigger[name=os_vendname]':{
- beforerender:function(f){
- Ext.apply(f,{
- dataUrl:'/api/document/vendor/list',
- addXtype: 'document-vendor-formpanel',
- addTitle: '供应商资料',
- dbfinds:[{
- from:'id',to:'os_vendid'
- },{
- from:'ve_code',to:'os_vendcode'
- },{
- from:'ve_name',to:'os_vendname'
- }],
- dbtpls:[{
- field:'ve_code',width:100
- },{
- field:'ve_name',width:100
- }],
- dbColumns:[{
- "text": "供应商ID",
- "flex": 0,
- "dataIndex": "id",
- "width": 100,
- "xtype": "numbercolumn"
- },{
- "text": "供应商编号",
- "flex": 1,
- "dataIndex": "ve_code",
- "width": 100
- }, {
- "text": "供应商名称",
- "flex": 1,
- "dataIndex": "ve_name",
- "width": 100
- }, {
- "text": "供应商类型",
- "flex": 0,
- "dataIndex": "ve_type",
- "width": 200,
- "items": null
- }, {
- "text": "税率",
- "flex": 1,
- "dataIndex": "ve_taxrate",
- "width": 100
- }, {
- "text": "承付天数",
- "flex": 1,
- "dataIndex": "ve_promisedays",
- "width": 100
- }, {
- "text": "纳税人识别号",
- "flex": 1,
- "dataIndex": "ve_bankaccount",
- "width": 100
- }, {
- "text": "开户银行",
- "flex": 1,
- "dataIndex": "ve_bankaccount",
- "width": 100
- }, {
- "text": "银行账户",
- "flex": 1,
- "dataIndex": "ve_bankcode",
- "width": 100
- }]
- }) ;
- }
- },
- //放大镜赋值关系 以及 tpl模板
- 'dbfindtrigger[name=os_bankname]':{
- beforerender:function(f){
- Ext.apply(f,{
- conditionCode:'os_bankcode',
- dataUrl:'/api/document/bankinformation/list',
- dbfinds:[{
- from:'bk_bankcode',to:'os_bankcode'
- },{
- from:'bk_bankname',to:'os_bankname'
- },{
- from:'id',to:'os_bankid'
- }],
- dbtpls:[{
- field:'bk_bankcode',width:100
- },{
- field:'bk_bankname',width:100
- }],
- dbColumns:[{
- "text": "账户ID",
- "flex": 0,
- "dataIndex": "id",
- "width": 0,
- "xtype": ""
- },{
- "text": "账户编号",
- "flex": 1,
- "dataIndex": "bk_bankcode",
- "width": 120,
- "xtype": ""
- }, {
- "text": "账户名称",
- "flex": 1,
- "dataIndex": "bk_bankname",
- "width": 150,
- "xtype": ""
- }, {
- "text": "账户类型",
- "flex": 1,
- "dataIndex": "bk_type",
- "width": 120,
- "xtype": ""
- }, {
- "text": "账户余额",
- "flex": 1,
- "dataIndex": "bk_thisamount",
- "width": 120,
- "xtype": ""
- }, {
- "text": "建帐日期",
- "flex": 1,
- "dataIndex": "bk_date",
- "width": 120,
- "xtype": "datecolumn"
- }]
- }) ;
- }
- }
- });
- }
- });
|