Browse Source

报表按钮调整,操作日志按钮调整

rainco 7 years ago
parent
commit
8973ede785

+ 16 - 1
frontend/saas-web/app/Application.scss

@@ -175,7 +175,22 @@ body.launching {
       color:#fff !important;
       color:#fff !important;
   }
   }
 }
 }
-
+.x-formpanel-btn-white {
+    border: 1px solid #c1c1c1 !important;
+    //border-radius: 2px;
+    box-shadow: 0 1px 1px rgba(0,0,0,.15);
+    /*background: #fff;
+    background: -moz-linear-gradient(top,#fff,#f4f4f4);
+    background: -webkit-gradient(linear,0 0,0 100%,from(#fff),to(#f4f4f4));
+    background: -o-linear-gradient(top,#fff,#f4f4f4);
+    background: -ms-linear-gradient(top,#fff 0,#f4f4f4 100%);
+    background: linear-gradient(top,#fff,#f4f4f4); */
+    border-color: #fff;
+    background: linear-gradient(to bottom,#fff,#f4f4f4 100%) !important;
+    .x-btn-inner-default-toolbar-small{
+      color: #555;
+  }
+}
 .x-grid-body {
 .x-grid-body {
   border-width: 1px;
   border-width: 1px;
   border-color: #ABDAFF;
   border-color: #ABDAFF;

+ 18 - 9
frontend/saas-web/app/view/core/form/FormPanel.js

@@ -46,35 +46,37 @@ Ext.define('saas.view.core.form.FormPanel', {
         unAuditText: '未审核',
         unAuditText: '未审核',
         auditBtnText: '审核',
         auditBtnText: '审核',
         unAuditBtnText: '反审核',
         unAuditBtnText: '反审核',
+        messageLogText:'操作日志'
     },
     },
-    buttons:[{
+    /* buttons:[{
         text:'操作日志',
         text:'操作日志',
+        bind: {
+            hidden: 'isNewPanle'
+        },
         handler:function(btn){
         handler:function(btn){
             var form = btn.up('form'),
             var form = btn.up('form'),
             mlKeyvalue = form.viewModel.get(form._idField)||0,
             mlKeyvalue = form.viewModel.get(form._idField)||0,
             win = Ext.getCmp(form.xtype+mlKeyvalue);
             win = Ext.getCmp(form.xtype+mlKeyvalue);
-            if (!win) {
-                win = Ext.create('Ext.window.Window', {
+            if (!win&&mlKeyvalue!=0) {
+                var win = form.add(Ext.create('Ext.window.Window', {
                     modal: true,
                     modal: true,
                     id:form.xtype+mlKeyvalue,
                     id:form.xtype+mlKeyvalue,
-                    height: '80%',
+                    height: '60%',
                     width: '80%',
                     width: '80%',
                     title: '操作日志('+form.viewModel.get(form._codeField)+')',
                     title: '操作日志('+form.viewModel.get(form._codeField)+')',
                     scrollable: true,
                     scrollable: true,
-                    //bodyPadding: 10,
                     constrain: true,
                     constrain: true,
                     closable: true,
                     closable: true,
                     layout: 'fit',
                     layout: 'fit',
-                    renderTo: Ext.getCmp('main-tab-panel').getActiveTab().down('form').getEl(),
                     items: [{
                     items: [{
                         xtype: 'core-form-mseeageLog',
                         xtype: 'core-form-mseeageLog',
                         mlKeyvalue:mlKeyvalue
                         mlKeyvalue:mlKeyvalue
                     }]
                     }]
-                });
+                }));
             };
             };
             win.show();
             win.show();
         }
         }
-    }],
+    }], */
     initComponent: function () {
     initComponent: function () {
         var me = this,
         var me = this,
         auditTexts = me.auditTexts;
         auditTexts = me.auditTexts;
@@ -121,7 +123,14 @@ Ext.define('saas.view.core.form.FormPanel', {
                 hidden:'{!showAuditBtn}'
                 hidden:'{!showAuditBtn}'
             },
             },
             handler: "auditBtnClick",
             handler: "auditBtnClick",
-        }];
+        }, {
+            cls:'x-formpanel-btn-white',
+            text:'操作日志',
+            bind: {
+                hidden: '{!id}'
+            },
+            handler:"showMessageLog"
+        } ];
 
 
         Ext.apply(me, {
         Ext.apply(me, {
             dockedItems: [{
             dockedItems: [{

+ 30 - 1
frontend/saas-web/app/view/core/form/FormPanelController.js

@@ -291,7 +291,36 @@ Ext.define('saas.view.core.form.FormPanelController', {
         var me = this,
         var me = this,
         viewModel = me.getViewModel(),
         viewModel = me.getViewModel(),
         codeEditable = viewModel.get('base.codeEditable');
         codeEditable = viewModel.get('base.codeEditable');
-
         viewModel.set('base.codeEditable', !codeEditable);
         viewModel.set('base.codeEditable', !codeEditable);
+    },
+    showMessageLog:function(btn){
+        var me = this,
+        form = me.getView(),
+        viewModel = me.getViewModel(),
+        mlKeyvalue = viewModel.get(form._idField),
+        win = Ext.getCmp(form.xtype+mlKeyvalue);
+        if (!win&&mlKeyvalue!=0) {
+            var win = form.add(Ext.create('Ext.window.Window', {
+                modal: true,
+                id:me.xtype+mlKeyvalue,
+                height: '60%',
+                width: '80%',
+                title: '操作日志('+viewModel.get(form._codeField)+')',
+                scrollable: true,
+                constrain: true,
+                closable: true,
+                layout: 'fit',
+                items: [{
+                    xtype: 'core-form-mseeageLog',
+                    mlKeyvalue:mlKeyvalue
+                }],
+                listeners:{
+                    'close':function(){
+                        btn.removeCls('x-btn-focus');
+                    }
+                }
+            }));
+        };
+        win.show();
     }
     }
 });
 });

+ 6 - 6
frontend/saas-web/app/view/document/customer/FormPanel.js

@@ -28,18 +28,18 @@ Ext.define('saas.view.document.customer.FormPanel', {
         fieldLabel: 'id',
         fieldLabel: 'id',
         allowBlank: true,
         allowBlank: true,
         columnWidth: 0.25
         columnWidth: 0.25
-    },{
-        xtype: 'textfield',
-        name: 'cu_name',
-        fieldLabel: '客户名称',
-        allowBlank: false,
-        columnWidth: 0.5
     },{
     },{
         xtype: 'textfield',
         xtype: 'textfield',
         name: 'cu_code',
         name: 'cu_code',
         fieldLabel: '客户编号',
         fieldLabel: '客户编号',
         allowBlank: false,
         allowBlank: false,
         columnWidth: 0.25
         columnWidth: 0.25
+    },{
+        xtype: 'textfield',
+        name: 'cu_name',
+        fieldLabel: '客户名称',
+        allowBlank: false,
+        columnWidth: 0.5
     },{
     },{
         editable:false,
         editable:false,
         xtype : "remotecombo", 
         xtype : "remotecombo", 

+ 0 - 2
frontend/saas-web/app/view/document/product/FormPanel.js

@@ -89,14 +89,12 @@ Ext.define('saas.view.document.product.FormPanel', {
     },{
     },{
         xtype : "dbfindtrigger",   
         xtype : "dbfindtrigger",   
         name : "pr_vendcode", 
         name : "pr_vendcode", 
-        bind : "{pr_vendcode}", 
         fieldLabel : "供应商编号", 
         fieldLabel : "供应商编号", 
         allowBlank : true, 
         allowBlank : true, 
         columnWidth : 0.25, 
         columnWidth : 0.25, 
     }, {
     }, {
         xtype : "textfield", 
         xtype : "textfield", 
         name : "pr_vendname", 
         name : "pr_vendname", 
-        bind : "{pr_vendname}", 
         fieldLabel : "供应商名称", 
         fieldLabel : "供应商名称", 
         allowBlank : true, 
         allowBlank : true, 
         columnWidth : 0.25
         columnWidth : 0.25

+ 6 - 6
frontend/saas-web/app/view/document/vendor/FormPanel.js

@@ -28,18 +28,18 @@ Ext.define('saas.view.document.vendor.FormPanel', {
         fieldLabel: 'id',
         fieldLabel: 'id',
         allowBlank: true,
         allowBlank: true,
         columnWidth: 0.25
         columnWidth: 0.25
-    },{
-        xtype: 'textfield',
-        name: 've_name',
-        fieldLabel: '供应商名称',
-        allowBlank: false,
-        columnWidth: 0.5
     },{
     },{
         xtype: 'textfield',
         xtype: 'textfield',
         name: 've_code',
         name: 've_code',
         fieldLabel: '供应商编号',
         fieldLabel: '供应商编号',
         allowBlank: false,
         allowBlank: false,
         columnWidth: 0.25
         columnWidth: 0.25
+    },{
+        xtype: 'textfield',
+        name: 've_name',
+        fieldLabel: '供应商名称',
+        allowBlank: false,
+        columnWidth: 0.5
     },{
     },{
         xtype: 'hidden',
         xtype: 'hidden',
         name: 've_status',
         name: 've_status',

+ 2 - 2
frontend/saas-web/app/view/money/report/AccountBalance.js

@@ -11,13 +11,13 @@ Ext.define('saas.view.money.report.AccountBalance', {
     listUrl: '/api/money/report/accountBalance',
     listUrl: '/api/money/report/accountBalance',
     defaultCondition: null,
     defaultCondition: null,
     reportTitle: '资金账户收支明细',
     reportTitle: '资金账户收支明细',
-    QueryWidth:0.2,
+    QueryWidth:0.25,
     //筛选:账户、日期(必填)
     //筛选:账户、日期(必填)
     searchItems: [ {
     searchItems: [ {
         xtype: 'dbfindtrigger',
         xtype: 'dbfindtrigger',
         name: 'bankcode',
         name: 'bankcode',
         fieldLabel: '账户名称',
         fieldLabel: '账户名称',
-        columnWidth: 0.2
+        columnWidth: 0.25
     }, {
     }, {
         xtype: 'condatefield',
         xtype: 'condatefield',
         name: 'date',
         name: 'date',

+ 2 - 2
frontend/saas-web/app/view/money/report/PayDetail.js

@@ -10,13 +10,13 @@ Ext.define('saas.view.money.report.PayDetail', {
     listUrl: '/api/money/report/payDetail',
     listUrl: '/api/money/report/payDetail',
     defaultCondition: null,
     defaultCondition: null,
     reportTitle: '应付账款明细表',
     reportTitle: '应付账款明细表',
-    QueryWidth:0.2,
+    QueryWidth:0.25,
     //筛选:供应商、日期(必填)
     //筛选:供应商、日期(必填)
     searchItems: [ {
     searchItems: [ {
         xtype: 'dbfindtrigger',
         xtype: 'dbfindtrigger',
         name: 'pi_vendname',
         name: 'pi_vendname',
         fieldLabel: '供应商名称',
         fieldLabel: '供应商名称',
-        columnWidth: 0.2
+        columnWidth: 0.25
     }, {
     }, {
         xtype: 'condatefield',
         xtype: 'condatefield',
         name: 'pb_date',
         name: 'pb_date',

+ 2 - 2
frontend/saas-web/app/view/money/report/RecDetail.js

@@ -11,13 +11,13 @@ Ext.define('saas.view.money.report.RecDetail', {
     listUrl: '/api/money/report/recDetail',
     listUrl: '/api/money/report/recDetail',
     defaultCondition: null,
     defaultCondition: null,
     reportTitle: '应收账款明细',
     reportTitle: '应收账款明细',
-    QueryWidth:0.2,
+    QueryWidth:0.25,
     //筛选:客户、日期(必填)
     //筛选:客户、日期(必填)
     searchItems: [ {
     searchItems: [ {
         xtype: 'dbfindtrigger',
         xtype: 'dbfindtrigger',
         name: 'pi_custname',
         name: 'pi_custname',
         fieldLabel: '客户名称',
         fieldLabel: '客户名称',
-        columnWidth: 0.2
+        columnWidth: 0.25
     }, {
     }, {
         xtype: 'condatefield',
         xtype: 'condatefield',
         name: 'pb_date',
         name: 'pb_date',

+ 2 - 2
frontend/saas-web/app/view/money/report/VendorCheck.js

@@ -11,13 +11,13 @@ Ext.define('saas.view.money.report.VendorCheck', {
     listUrl: '/api/money/report/vendorCheck',
     listUrl: '/api/money/report/vendorCheck',
     defaultCondition: null,
     defaultCondition: null,
     reportTitle: '供应商对账单',
     reportTitle: '供应商对账单',
-    QueryWidth:0.2,
+    QueryWidth:0.25,
     //筛选:供应商、日期(必填)
     //筛选:供应商、日期(必填)
     searchItems: [ {
     searchItems: [ {
         xtype: 'dbfindtrigger',
         xtype: 'dbfindtrigger',
         name: 'pi_vendname',
         name: 'pi_vendname',
         fieldLabel: '供应商名称',
         fieldLabel: '供应商名称',
-        columnWidth: 0.2
+        columnWidth: 0.25
     }, {
     }, {
         xtype: 'condatefield',
         xtype: 'condatefield',
         name: 'pi_date',
         name: 'pi_date',