|
|
@@ -1,4 +1,80 @@
|
|
|
Ext.define('saas.view.purchase.report.PurchasePayController', {
|
|
|
extend: 'saas.view.core.report.ReportPanelController',
|
|
|
- alias: 'controller.purchase-report-purchasepay'
|
|
|
+ alias: 'controller.purchase-report-purchasepay',
|
|
|
+ init: function (form) {
|
|
|
+ this.control({
|
|
|
+ // 供应商编号
|
|
|
+ 'dbfindtrigger[name=pu_vendname]':{
|
|
|
+ beforerender:function(f){
|
|
|
+ Ext.apply(f,{
|
|
|
+ dataUrl:'/api/document/vendor/list',
|
|
|
+ addXtype: 'document-vendor-formpanel',
|
|
|
+ addTitle: '供应商资料',
|
|
|
+ dbfinds:[{
|
|
|
+ from:'ve_code',to:'pu_vendcode'
|
|
|
+ },{
|
|
|
+ from:'ve_name',to:'pu_vendname'
|
|
|
+ }],
|
|
|
+ dbtpls:[{
|
|
|
+ field:'ve_code',width:100
|
|
|
+ },{
|
|
|
+ field:'ve_name',width:100
|
|
|
+ }],
|
|
|
+ defaultCondition: "ve_statuscode='OPEN'",
|
|
|
+ dbSearchFields:[{
|
|
|
+ emptyText:'输入供应商编号或名称',
|
|
|
+ xtype : "textfield",
|
|
|
+ name : "search",
|
|
|
+ getCondition: function(v) {
|
|
|
+ return "(upper(ve_code) like '%"+v.toUpperCase()+"%' or upper(ve_name) like '%"+v.toUpperCase()+"%')";
|
|
|
+ },
|
|
|
+ allowBlank : true,
|
|
|
+ columnWidth : 0.25
|
|
|
+ }],
|
|
|
+ dbColumns:[{
|
|
|
+ "text": "供应商ID",
|
|
|
+ "hidden": true,
|
|
|
+ "dataIndex": "id",
|
|
|
+ "width": 100,
|
|
|
+ "xtype": "numbercolumn"
|
|
|
+ },{
|
|
|
+ "text": "供应商编号",
|
|
|
+ "dataIndex": "ve_code",
|
|
|
+ "width": 200
|
|
|
+ }, {
|
|
|
+ "text": "供应商名称",
|
|
|
+ "dataIndex": "ve_name",
|
|
|
+ "width": 200
|
|
|
+ }, {
|
|
|
+ "text": "供应商类型",
|
|
|
+ "dataIndex": "ve_type",
|
|
|
+ "width": 180,
|
|
|
+ "items": null
|
|
|
+ }, {
|
|
|
+ "text": "税率",
|
|
|
+ "dataIndex": "ve_taxrate",
|
|
|
+ "width": 100
|
|
|
+ }, {
|
|
|
+ "text": "承付天数",
|
|
|
+ "dataIndex": "ve_promisedays",
|
|
|
+ "width": 100
|
|
|
+ }, {
|
|
|
+ "text": "纳税人识别号",
|
|
|
+ "dataIndex": "ve_bankaccount",
|
|
|
+ "width": 150
|
|
|
+ }, {
|
|
|
+ "text": "开户银行",
|
|
|
+ "dataIndex": "ve_bankaccount",
|
|
|
+ "width": 100
|
|
|
+ }, {
|
|
|
+ "text": "银行账户",
|
|
|
+ "dataIndex": "ve_bankcode",
|
|
|
+ "width": 100
|
|
|
+ }]
|
|
|
+ }) ;
|
|
|
+
|
|
|
+ }
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
});
|